摘要: function getSearchString(key) { // 获取URL中?之后的字符 var searchArr= window.location.href.split('#')[0].split('?')[1]; // 以&分隔字符串,获得类似name=xiaoli这样的元素数组 var arr = searchArr.split("&"); ... 阅读全文
posted @ 2018-01-02 18:15 neo_o 阅读(486) 评论(0) 推荐(0)
摘要: const ls = window.localStorage const ss = window.sessionStorage export const LStorage= { getItem(key) { try { return JSON.parse(ls.getItem(key)) } catch (err) { return null } }, set... 阅读全文
posted @ 2018-01-02 18:14 neo_o 阅读(5491) 评论(0) 推荐(0)
摘要: 1.安装插件 cnpm install vue-wechat-title --save 2.在main.js中引入 Vue.use(require('vue-wechat-title')) 3.在路由里添加name属性例: 4.在App.vue文件里添加如下代码: 阅读全文
posted @ 2018-01-02 18:09 neo_o 阅读(6322) 评论(0) 推荐(0)
摘要: mode:hash模式下: HTML部分: 路由部分: 阅读全文
posted @ 2018-01-02 18:02 neo_o 阅读(14969) 评论(0) 推荐(0)
摘要: <mt-button type="danger" size="small" @click="cancelOrderInfo(this.event)">取消</mt-button> cancelOrderInfo(event){ event.cancelBubble = true; } 阅读全文
posted @ 2018-01-02 14:10 neo_o 阅读(720) 评论(0) 推荐(1)

愿你的生活只有诗和远方