上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 39 下一页
摘要: 阅读全文
posted @ 2019-12-24 12:27 武卡卡 阅读(3935) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-12-20 15:08 武卡卡 阅读(366) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-12-20 14:41 武卡卡 阅读(2116) 评论(0) 推荐(0) 编辑
摘要: router.beforeEach((to, from, next) => { if(to.path!='/login' && localStorage.token==undefined){ next('/login') return } next() }) 阅读全文
posted @ 2019-12-19 21:18 武卡卡 阅读(114) 评论(0) 推荐(0) 编辑
摘要: /^[\u4E00-\u9FA5A-Za-z0-9]+$/ 阅读全文
posted @ 2019-12-18 13:41 武卡卡 阅读(7045) 评论(2) 推荐(5) 编辑
摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1,2})?$ 带1 阅读全文
posted @ 2019-12-18 08:52 武卡卡 阅读(211) 评论(0) 推荐(0) 编辑
摘要: var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789' console.log(chars.charAt(Math.floor(Math.random() * chars.length))) 阅读全文
posted @ 2019-12-16 21:23 武卡卡 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-16 15:10 武卡卡 阅读(4060) 评论(0) 推荐(0) 编辑
摘要: 第一种,只引入单个图片,这种引入方法在异步中引入则会报错。 比如需要遍历出很多图片展示时 <image :src = require('图片的路径') /> 第二种,可引入多个图片,也可引入单个图片。 vuelic3版本没有static文件夹。可将静态图片存放到public目录下,直接引入即可 <i 阅读全文
posted @ 2019-12-16 14:50 武卡卡 阅读(22768) 评论(1) 推荐(8) 编辑
摘要: var arr =['h','e','l','l','o'] var s = arr.join(""); console.log(s); 阅读全文
posted @ 2019-12-11 10:41 武卡卡 阅读(581) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 39 下一页