- 博客(19)
- 资源 (4)
- 问答 (3)
- 收藏
- 关注
原创 常用文件上传控制选择文件的类型
# 后缀名 MIME名称 1 audio/* */接受所有的声音文件。 2 video/* */接受所有的视频文件。 3 image/* */接受所有的图像文件。 4 *.xlw application/vnd.ms-excel MS Excel Workspace 5 *.xml text/xml, application/xml Extensible Markup Language 6 *.zip aplication/zip Com.
2022-03-11 11:57:38
1282
原创 in ./node_modules/@jiaminghi/data-view/lib/components/decoration6/src/main.vue
1、找到报错的文件2、将 :key=“i” 放到 v-for 后面,npm run build就可以了
2022-01-19 15:32:03
4808
4
原创 电子数字字体
效果图1、定义@font-face { font-family: "UnidreamLED"; src: url("./font/UnidreamLED.eot"); src: url("./font/UnidreamLED.eot?#iefix") format("embedded-opentype"), url("./font/UnidreamLED.woff") format("woff"), local("UnidreamLED"), url("./fo
2021-07-13 14:41:59
2500
原创 vue使用echarts绘制中国地图
vue使用echarts地图//myMap.vue//china.js下载地址//mymap.js下载地址import china from "@/components/map/china.js";import option from "@/components/map/mymap.js";export default { methods: { initMap() { this.ECharts.registerMap("china", china); let
2021-04-21 16:56:10
771
原创 编码与解码
1、encodeURI()()编码与decodeURI()解码encodeURI() 把字符串编码为 URI。decodeURI() 解码某个编码的 URI。2、encodeURIComponent()编码与decodeURIComponent()解码encodeURIComponent() 把字符串编码为 URI 组件。decodeURIComponent() 解码一个编码的 URI 组件。与encodeURI()、decodeURI()的区别 可以编码和解码URI特殊字符(如#,/,¥等),
2021-02-02 12:30:02
209
转载 转码
第一步:传值编码 encodeURIComponent()skip(){ this.$router.push({ path:'./channelPromotion?channelName='+'我是字 段'+'&&channelUrl='+encodeURIComponent('https://www.baidu.com/#/rejister.........') })}第二步 取值解码 decodeURIComponent()mounted(){
2021-02-02 11:27:04
109
原创 vue中使用百度地图GL
//BMapGLexport function BMPGL(ak) {return new Promise(function(resolve, reject) {window.init = function() {// eslint-disable-next-lineresolve(BMapGL);};const script = document.createElement(“script”);script.type = “text/javascript”;script.src = ht
2021-01-14 15:05:04
7112
8
原创 git命令
1、远程仓库添加SSH公钥2、git clone git@github.com:miao/gits.git 从远程仓库克隆到本地(ssh协议速度最快)2、git init 初始化Git仓库3、git add . 添加所有文件到暂存区 git add filename 添加修改的文件到暂存区4、git commit -m “提交信息” 提交到仓库5、git log --graph --pretty=oneline --abbrev-commit 查看提交历史 (--graph图形 --p
2021-01-12 14:32:19
162
原创 常用正则表达式
手机验证var phone = "15703559918";var reg =/^(1[2-9][0-9])\d{8}$/;reg.test(tphone); //true邮箱验证var email = "123456789@qq.com";var reg = /^[a-z0-9A-Z]+[- | a-z0-9A-Z . _]+@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-z]{2,}$/;reg.test(email);中文验证...
2021-01-06 11:27:26
2152
原创 处理下载失败的返回
import axios from "axios";import { Message } from "element-ui";export function output(url, id) { axios({ method: "post", url: url, //下载地址 data: id,//传参 responseType: "blob" }).then(rs => { //取得返回对象中的data let { data } = rs;
2020-11-05 09:41:18
428
1
转载 最实用的Linux命令总结
1.linux安装中文环境(可选)联网之后执行:sudo yum groupinstall chinese-support,安装完语言包之后修改/etc/sysconfig/i18n文件,修改LANG="zhCN.UTF-8"。如果只想对当前登录用户有效请编辑~/.bashrc文件,在最后加入:export LANG="zhCN.UTF-8"2. 一些杂项2.1监听网络端口netstat -nltp 比如可以看3306是否存在来确定mysql是否启动service network status
2020-08-25 16:36:00
586
转载 vue项目部署到虚拟机
虚拟机环境配置本地计算机系统:Windows 10 下载安装 VMware Workstation Pro 下载地址:https://my.vmware.com/cn/web/vmware/details?downloadGroup=WKST-1552-WIN&productId=799&rPId=42649 下载 CentOS 7 映像文件(iso) 下载地址:http://isoredirect.centos.org/centos/8/isos/x86_64/Ce
2020-08-24 11:13:44
3280
1
原创 array常用方法
遍历数组fruits.forEach(function (item, index, array) { console.log(item, index);});// Apple 0// Banana 1添加元素到数组的末尾var newLength = fruits.push('Orange');// newLength:3; fruits: ["Apple", "Banana", "Orange"]删除数组末尾的元素var last = fruits.pop();// rem
2020-08-04 16:44:57
232
原创 js 递归数组
//json对象const json = { code: 200, data: [ { children: [ { id: 85, path: [0, 1, 85], pid: 1 }, { id: 86, path: [0, 1, 86], pid: 1 }, { id: 87, path: [0, 1, 87], pid: 1 }, { id: 153, path: [0, 1, 153], pid: 1 },
2020-08-01 14:08:42
1911
原创 vue表单验证,中文验证
el-input <el-form-item prop="account"> <span class="font-container"> <i class="iconfont icon-yonghu"></i> </span> <el-input v-model="loginForm.account" name="account" placeholde
2020-07-28 15:51:17
4194
原创 element级联选择器数据渲染
el-cascader <el-cascader class="filter-item" placeholder="请选择所属部门" :options="departmentData" v-model="departmentid" clearable :props="props" style="width: 200px;" cha
2020-07-28 15:30:04
876
原创 vue密码框的显示或隐藏
html :type="passwordType"自己在密码框的后面加一个图标并给一个点击事件method if (this.passwordType === "password") { this.passwordType = ""; } else { this.passwordType = "password"; }
2020-07-28 14:59:35
1523
转载 vue禁止空格输入
1.输入框@keydown.native="keydown($event)"2.methodskeydown(event){ if(event.keyCode == 32){ event.returnValue = false }}本文地址:https://blog.youkuaiyun.com/qq_37332614/article/details/103260045转载请注明!!!
2020-07-28 09:30:33
968
有没有哪位大佬来帮我看看路由动态添加跳转404和权限的问题
2021-03-05
axios 请求下载地址后有响应数据返回,但then里面拿不到?
2020-09-28
TA创建的收藏夹 TA关注的收藏夹
TA关注的人