Fork me on GitHub
上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页
摘要: <video class="videoItem" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" :src="item.photoUrl" x5-video- 阅读全文
posted @ 2020-08-19 11:50 欢欢11 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: //在render前执行,并且执行一次 componentWillMount() { console.log('willMount') } //在render后执行,且执行一次 componentDidMount() { console.log("DidMount") } //初始化render不执 阅读全文
posted @ 2020-08-18 20:38 欢欢11 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1.把这段放在main.js中重启,手机上可以实现调试功能; (function () { var src = '//cdn.jsdelivr.net/npm/eruda'; // if (!/eruda=true/.test(window.location) && localStorage.get 阅读全文
posted @ 2020-07-30 15:38 欢欢11 阅读(2176) 评论(0) 推荐(0) 编辑
摘要: 第a56爆大奖在线娱乐: formatData(val) { if (val && val.toString().length > 4) { return val.toString().replace(/(.{4})/g, "$1,") } return val }, 第二种 fenGeString(str, nu 阅读全文
posted @ 2020-07-29 10:04 欢欢11 阅读(722) 评论(0) 推荐(0) 编辑
摘要: getDate() { var time_now_server, time_now_client, time_end, time_server_client; time_end = new Date("2020 07 22 18:50:50");//结束的时间 time_end = time_end 阅读全文
posted @ 2020-07-22 19:48 欢欢11 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 1.打开项目,在项目中指向git init 初始化git仓库 2.把下面.gitignore这个文件复制到项目根目录下面,为了忽略不必要上穿的文件 node_modules /unpackage # local env files .env.local .env.*.local # Log file 阅读全文
posted @ 2020-04-27 17:56 欢欢11 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.下载到本地 2.把iconfont.css复制到static目录下 3.删除多余文件,只保留一个src 4.使用 阅读全文
posted @ 2020-04-23 14:17 欢欢11 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1.用户第一次登录,调用后端登录接口,发送用户名和密码 2.后端验证用户名和密码是否正确,成功则返回token, 3.前端拿到token,将token存储在localStorge()和vuex中,并跳转到主页 4.前端每次跳转路由就判断localStorge中是否有token,没有就跳转到登录页 5 阅读全文
posted @ 2020-04-19 20:44 欢欢11 阅读(3810) 评论(0) 推荐(0) 编辑
摘要: 1.判断js类型的方法 1 typof() 2 可以判断出 string boolean undefiend number 3 但是判断typeof(null) 时值为object ,判断对象数组的时候也是objectObject.prototype.toString.call() 可以判断出所有类 阅读全文
posted @ 2020-04-19 20:12 欢欢11 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1.结构数组 function fast(){ return ['apple','orgin','big'] } //原始方式 let arry = fast(); let a = arry[0]; //es6 let [a,b,c] = fast(); console.log(a) // appl 阅读全文
posted @ 2020-04-08 22:45 欢欢11 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 25 下一页