component(resolve) {resolve('12312')}
wcldyx opened this issue · comments
leowang commented
component(resolve) {
require.ensure(['./components/recommend/recommend.vue'], () => {
resolve(require('./components/recommend/recommend.vue'));
});
},
我不明白为什么还可以这样写,这个resolve 参数是谁传过来的
Yangyi commented
这个是 路由懒加载。你去看下文档
panmudi commented
VanAndy commented
...mapState([
'loadingShow'
])
VanAndy commented
这个es6的语法在阮一峰那一夜可以找到
Yalhu commented
@panmudi http://gank.io/api/history/content/day/${object.Y}/${object.M}
相当于
“http://gank.io/api/history/content/day/”+${object.Y}+“/”+${object.M}