摘要: 在入口文件main.js中引入 // userAgent client const userAgent = navigator.appVersion const userAgentL = userAgent.toLowerCase() Vue.prototype.$client = Vue.clie 阅读全文
posted @ 2020-06-17 16:44 无所谓。。。 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 安装命令 npm i --S vconsole 然后再入口文件main.js中引入 let VConsole = require('../node_modules/vconsole/dist/vconsole.min');//路径根据项目自己找 let vConsole = new VConsole 阅读全文
posted @ 2020-06-17 16:22 无所谓。。。 阅读(3006) 评论(0) 推荐(0) 编辑
摘要: <template> <div> {{ phone | phoneLize }} </div> </template> <script> export default { name: 'index', data() { return { phone: '18790888888' }; }, // s 阅读全文
posted @ 2020-06-17 15:35 无所谓。。。 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 短信验证码60s倒计时 <template> <div> <button v-if="show" @click="getCode">获取验证码</button> <button v-if="!show">{{ times }}s</button> </div> </template> <script 阅读全文
posted @ 2020-06-17 10:57 无所谓。。。 阅读(25473) 评论(0) 推荐(2) 编辑
摘要: 在APP中 ios手机 用户打开默认的自动识别密码,会出现调起键盘输入密码时 键盘一直闪烁的bug 解决方法:1用户在ios系统的设置中 自己关闭自动识别密码 (这种问题建议还是开发解决吧,用户体验不好,,,) 第二种解决方法: 下面以vant组件使用为例 这是一个登陆页 一开始这样写就 用户打开默 阅读全文
posted @ 2020-06-17 10:47 无所谓。。。 阅读(2205) 评论(1) 推荐(0) 编辑
摘要: <template> <div> {{ data }} </div> </template> <script> export default { name: 'index', data() { return { data:'' }; }, created() { this.getRandomInt( 阅读全文
posted @ 2020-06-17 10:33 无所谓。。。 阅读(11248) 评论(0) 推荐(0) 编辑
摘要: 网址:https://help.aliyun.com/document_detail/121898.html?spm=a2c4g.11186623.6.559.c58f2430eBmuaf 可直接使用 <template> <div> <div id="__nc" style="margin-lef 阅读全文
posted @ 2020-06-17 10:20 无所谓。。。 阅读(2275) 评论(0) 推荐(0) 编辑