摘要: dowFile (item) { const data = { translate: json[item] } let blob = new Blob([JSON.stringify(data)], { type: 'text/plain' }); let file = new File([blob 阅读全文
posted @ 2022-03-03 14:16 chicidol 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 日常工作中遇到一些Excel表格的数据,需要转换成json格式的字符串,怎么处理呢?可以使用这个工具:excel2json 下载地址:https://github.com/neil3d/excel2json/releases 用cmd进入文件解压所在的地址,敲入命令 excel2json --exc 阅读全文
posted @ 2022-02-08 15:38 chicidol 阅读(2112) 评论(0) 推荐(0) 编辑
摘要: webpack-bundle-analyzer 扫描 bundle 并构建其内部内容的可视化。使用此可视化来查找大的或不必要的依赖项。 步骤一:安装 webpack-bundle-analyzer npm install webpack-bundle-analyzer --save-dev 步骤二: 阅读全文
posted @ 2021-12-10 14:46 chicidol 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 首先安装swiper插件:6.8.4版本 npm install swiper --save <template> <div> <div class="img"> <img v-for="(img,index) in srcList" :src="img" alt="" :key="index" @ 阅读全文
posted @ 2021-12-10 14:32 chicidol 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 首先安装插件:2.4.2版本 npm install @better-scroll/core --save <template> <div class="wrapper" ref="scroll"> <div class="content" > </div> </div> </template> < 阅读全文
posted @ 2021-12-10 13:43 chicidol 阅读(169) 评论(0) 推荐(0) 编辑
摘要: <input type="text" placeholder="" v-model="text" @input="onInput()" /> //禁止输入表情符号 onInput () { var reg = /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D 阅读全文
posted @ 2021-12-06 20:23 chicidol 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 首先新建文件夹,在文件夹里右键git bash here, git clone 地址,用vscode打开代码,修改好代码之后, 首先git branch -a查看远程分支,git checkout test切换到test分支,git branch查看当前分支, git pull,git add . 阅读全文
posted @ 2021-11-05 11:46 chicidol 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-29 14:42 chicidol 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 方案一:把http请求换为https 方案二:可能是后端的原因,找后端看下 阅读全文
posted @ 2021-10-15 16:16 chicidol 阅读(1354) 评论(0) 推荐(0) 编辑
摘要: 1. 下载Minify插件 搜索minify, 可以得到以下结果,点击Install即可下载, a56爆大奖在线娱乐下载了前两个插件。 2. 执行压缩命令 首先鼠标选中并打开需要压缩的页面,然后Ctrl + Shift + P出来几个选项,选择Minify选项即可 即可发现已经生成了一个新的压缩过的min文件 3. 阅读全文
posted @ 2021-10-15 11:14 chicidol 阅读(791) 评论(0) 推荐(0) 编辑