摘要: router > index.js main.js router.beforeEach((to, from, next) => { /* 路由发生变化修改页面title */ if (to.meta.title) { document.title = to.meta.title } next() } 阅读全文
posted @ 2018-10-09 18:06 LaLaLa_heng 阅读(7793) 评论(0) 推荐(0) 编辑
摘要: include 阅读全文
posted @ 2018-10-03 10:18 LaLaLa_heng 阅读(936) 评论(0) 推荐(0) 编辑
摘要: replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') 阅读全文
posted @ 2018-09-27 17:15 LaLaLa_heng 阅读(250) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐是大橙子 您连续签到:7天 ... 阅读全文
posted @ 2018-09-27 09:37 LaLaLa_heng 阅读(4329) 评论(0) 推荐(1) 编辑
摘要: function getId(id){ return document.getElementById(id) } var obj ={ fileInput : getId('test-image-file'), info: getId('test-file-info'), preview: getId('te... 阅读全文
posted @ 2018-09-06 10:31 LaLaLa_heng 阅读(115) 评论(0) 推荐(0) 编辑
摘要: function inherits(Child,Parent){ var F = function(){}; F.prototype = Parent.prototype; Child.prototype = new F(); Child.prototype.constructor = Child; } fu... 阅读全文
posted @ 2018-09-04 23:02 LaLaLa_heng 阅读(65) 评论(0) 推荐(0) 编辑
摘要: vm.userProfile = Object.assign({}, vm.userProfile, { age: 27, favoriteColor: 'Vue Green' }) 阅读全文
posted @ 2018-08-29 12:03 LaLaLa_heng 阅读(119) 评论(0) 推荐(0) 编辑
摘要: npm i -S weixin-js-sdkimport wx from 'weixin-js-sdk' 阅读全文
posted @ 2018-08-22 11:28 LaLaLa_heng 阅读(2599) 评论(0) 推荐(0) 编辑
摘要: https://www.npmjs.com/package/element-china-area-data 阅读全文
posted @ 2018-08-21 11:27 LaLaLa_heng 阅读(400) 评论(0) 推荐(0) 编辑
摘要: function getUrlParams(params){ var urlObj = {}; if(!window.location.search){return false;} var urlParams = window.location.search.substring(1); var urlArr = urlParams.split('&'); ... 阅读全文
posted @ 2018-08-20 11:29 LaLaLa_heng 阅读(8596) 评论(0) 推荐(0) 编辑