摘要:
1.commonjs 导入: var math = require('math'); math.add(2,3); // 5 导出: module.exports={} 应用会停止并等待加载 2.AMD AMD是"Asynchronous Module Definition"的缩写 它采用异步方式加 阅读全文
摘要:
html5 的history:vue-router利用html5 的history实现了http://yoursite.com/user/id这种url的history模式。URL跳转无需重新加载页面。 vue-router2.0比之前的0.7改变了很多,有新增有更改,过去的很多就不能用了:改变的内 阅读全文