摘要: <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 阅读(440) 评论(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 阅读(125) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-29 14:42 chicidol 阅读(60) 评论(0) 推荐(0)
摘要: 方案一:把http请求换为https 方案二:可能是后端的原因,找后端看下 阅读全文
posted @ 2021-10-15 16:16 chicidol 阅读(1540) 评论(0) 推荐(0)
摘要: 1. 下载Minify插件 搜索minify, 可以得到以下结果,点击Install即可下载, 我下载了前两个插件。 2. 执行压缩命令 首先鼠标选中并打开需要压缩的页面,然后Ctrl + Shift + P出来几个选项,选择Minify选项即可 即可发现已经生成了一个新的压缩过的min文件 3. 阅读全文
posted @ 2021-10-15 11:14 chicidol 阅读(1181) 评论(0) 推荐(0)
摘要: //maskOff 换成你的弹窗变量 监听弹窗开启 关闭 maskOff (newVal) { if (newVal) { document.body.style.overflow = "hidden"; } else { document.body.style.overflow = "auto"; 阅读全文
posted @ 2021-10-12 14:18 chicidol 阅读(76) 评论(0) 推荐(0)
摘要: 解决方案: 步骤一:给html和body设置height和overflow:scroll 步骤二:并且滚动事件的监听一定要写第三个参数: window.addEventListener('scroll', this.onScroll, true) 设置body的样式: window.document 阅读全文
posted @ 2021-10-12 11:53 chicidol 阅读(643) 评论(0) 推荐(0)
摘要: 白屏原因:安卓低版本无法解析es6语法,需要借助babel把es6转化为es5 安装npm install @babel/polyfill 在main.js第一行引入import '@babel/polyfill' //vue.config.js非常重要 const path = require(' 阅读全文
posted @ 2021-10-11 15:11 chicidol 阅读(607) 评论(0) 推荐(0)
摘要: //store->modules->app.js const state = { third: false, } const mutations = { SET_THIRD: (state, third) => { state.third = third }, } const actions = { 阅读全文
posted @ 2021-10-08 14:30 chicidol 阅读(34) 评论(0) 推荐(0)
摘要: textarea默认只显示一行的高度,输入内容不超过3行,高度自适应展示,超过3行则滚动显示。 <div class="textarea-content"> <textarea name="note" class="textarea" v-model="text" placeholder="请输入您 阅读全文
posted @ 2021-09-29 13:50 chicidol 阅读(2072) 评论(0) 推荐(0)