摘要:
含义 不要重复导航到当前位置。 解决办法 在 router.js 或者 /router/index.js 路由文件中,添加如下代码: const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function p 阅读全文
摘要:
module.exports 的用法 module.exports 对象是由模块系统创建的。在我们自己写模块的时候,需要在模块最后写好模块接口,声明这个模块对外暴露什么内容,module.exports 提供了暴露接口的方法。 示例 1、返回一个 JSON Object var app = { na 阅读全文