摘要:
if (typeof String.prototype.startsWith != 'function') { String.prototype.startsWith = function (prefix){ return this.slice(0, prefix.length) prefix; } 阅读全文
摘要:
$route为当前router跳转对象里面可以获取name、path、query、params等 $router为VueRouter实例,想要导航到不同URL,则使用router为VueRouter实例,想要导航到不同URL,则使用router.push方法 转自https://www.cnblog 阅读全文