摘要: //a-select 组件文件 <template> <a-select placeholder="请选择" :value="defaultValue" :disabled="disabledSelect" @change="changeSelect"> <a-select-option value 阅读全文
posted @ 2023-03-21 11:06 wpTing 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 字母转数字 function stringTonum(a) { var str = a.toLowerCase().split(""); var num = 0; var al = str.length; var getCharNumber = function (charx) { return c 阅读全文
posted @ 2021-12-15 14:22 wpTing 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 亲测有用 https://blog.csdn.net/u013350495/article/details/115861194 阅读全文
posted @ 2021-11-10 15:42 wpTing 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 在data()定义全局变量 data(){ return{ chart: null }} 在使用插件方法中最前面添加 if (this.chart != null && this.chart != "" && this.chart != undefined) { this.chart.d 阅读全文
posted @ 2021-07-15 10:32 wpTing 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.文件根目录输入命令: touch .gitignore 2.多了.gitignore文件 3.输入你想要忽略的文件 /node_modules 阅读全文
posted @ 2020-12-31 17:36 wpTing 阅读(59) 评论(0) 推荐(0) 编辑
摘要: https://tools.pdf24.org/zh/ 阅读全文
posted @ 2020-11-16 09:16 wpTing 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 第一种: 修改index.html头部加载文件 <link rel="shortcuticon" type="image/x-icon" href="favicon.ico" /> 缺点:打包后需要将favicon.ico复制到根目录 第二种: 1.找到build下的webpack.dev.conf 阅读全文
posted @ 2020-10-28 16:48 wpTing 阅读(874) 评论(0) 推荐(0) 编辑
摘要: 1.安装rimraf npm install rimraf -g 2.删除 rimraf node_modules 阅读全文
posted @ 2020-10-10 15:05 wpTing 阅读(275) 评论(0) 推荐(0) 编辑
摘要: var arr = [1, 2, undefined, 3, 4]; for(var i = 0; i < arr.length; i++){ if(arr[i] == '' || arr[i] == null || typeof(arr[i]) == undefined) { arr.splice 阅读全文
posted @ 2020-09-27 09:16 wpTing 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 意思就是:将一个多维数组变为一个一维数组 例子:const arr = [1, [2, [3, [4, 5]]], 6]; 结果:[1,2,3,4,5,6] 第一种:使用flat() Infinity 作为深度,展开任意深度的嵌套数组 arr.flat(Infinity) 第二种:reduce co 阅读全文
posted @ 2020-09-25 08:23 wpTing 阅读(163) 评论(0) 推荐(0) 编辑