会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wpTing
博客园
首页
新随笔
联系
订阅
管理
2023年3月21日
ant design vue 2.0 select 二次封装组件
摘要: //a-select 组件文件 <template> <a-select placeholder="请选择" :value="defaultValue" :disabled="disabledSelect" @change="changeSelect"> <a-select-option value
阅读全文
posted @ 2023-03-21 11:06 wpTing
阅读(359)
评论(0)
推荐(0)
2021年12月15日
js excel里面的字母和数字的转换处理
摘要: 字母转数字 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
阅读(275)
评论(0)
推荐(0)
2021年11月10日
uniapp uview扩展自定义图标
摘要: 亲测有用 https://blog.csdn.net/u013350495/article/details/115861194
阅读全文
posted @ 2021-11-10 15:42 wpTing
阅读(352)
评论(0)
推荐(0)
2021年7月15日
使用echarts插件,多次加载出现There is a chart instance already initialized on the dom,报的警告,看不下去啦
摘要: 解决方法: 在data()定义全局变量 data(){ return{ chart: null }} 在使用插件方法中最前面添加 if (this.chart != null && this.chart != "" && this.chart != undefined) { this.chart.d
阅读全文
posted @ 2021-07-15 10:32 wpTing
阅读(185)
评论(0)
推荐(0)
2020年12月31日
github新建忽略文件
摘要: 1.文件根目录输入命令: touch .gitignore 2.多了.gitignore文件 3.输入你想要忽略的文件 /node_modules
阅读全文
posted @ 2020-12-31 17:36 wpTing
阅读(68)
评论(0)
推荐(0)
2020年11月16日
免费且易于使用的在线PDF工具
摘要: https://tools.pdf24.org/zh/
阅读全文
posted @ 2020-11-16 09:16 wpTing
阅读(77)
评论(0)
推荐(0)
2020年10月28日
vue 添加favicon.ico
摘要: 第一种: 修改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
阅读(912)
评论(0)
推荐(0)
2020年10月10日
命令删除node_modules,绝对比手动删除快
摘要: 1.安装rimraf npm install rimraf -g 2.删除 rimraf node_modules
阅读全文
posted @ 2020-10-10 15:05 wpTing
阅读(282)
评论(0)
推荐(0)
2020年9月27日
删除数组undefind的值
摘要: 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
阅读(155)
评论(0)
推荐(0)
2020年9月25日
js 数组扁平化
摘要: 意思就是:将一个多维数组变为一个一维数组 例子: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
阅读(177)
评论(0)
推荐(0)
下一页
公告