liangxiaojuan / vue-Meizi

vue最新实战项目,vue2 + vuex + webpack + es6 干货多多,新手福利

Home Page:http://yangyi1024.com/meizi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

component(resolve) {resolve('12312')}

wcldyx opened this issue · comments

component(resolve) {
require.ensure(['./components/recommend/recommend.vue'], () => {
resolve(require('./components/recommend/recommend.vue'));
});
},

我不明白为什么还可以这样写,这个resolve 参数是谁传过来的

这个是 路由懒加载。你去看下文档

...mapState([
'loadingShow'
])

这个es6的语法在阮一峰那一夜可以找到

commented

@panmudi http://gank.io/api/history/content/day/${object.Y}/${object.M} 相当于
http://gank.io/api/history/content/day/”+${object.Y}+“/”+${object.M}
${object.Y},${object.M} 这两个是变量

commented

@fyhtosky ...是扩展运算符,将一个数组转为用逗号分隔的参数序列。。
那一页的话,自己去找吧