摘要: if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function (prefix){ return this.slice(0, prefix.length) prefix; } 阅读全文
posted @ 2018-11-07 18:00 Samsara315 阅读(185) 评论(0) 推荐(0) 编辑
摘要: $route为当前router跳转对象里面可以获取name、path、query、params等 $router为VueRouter实例,想要导航到不同URL,则使用router为VueRouter实例,想要导航到不同URL,则使用router.push方法 转自https://www.cnblog 阅读全文
posted @ 2018-11-07 17:57 Samsara315 阅读(170) 评论(0) 推荐(0) 编辑