vue-Meizi icon indicating copy to clipboard operation
vue-Meizi copied to clipboard

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

Open wcldyx opened this issue 7 years ago • 6 comments

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

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

wcldyx avatar Mar 30 '17 03:03 wcldyx

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

liangxiaojuan avatar Mar 31 '17 03:03 liangxiaojuan

`http://gank.io/api/history/content/day/${object.Y}/${object.M}/${object.D},${object.Y}什么意思

panmudi avatar May 21 '17 11:05 panmudi

...mapState([ 'loadingShow' ])

fyhtosky avatar May 23 '17 01:05 fyhtosky

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

fyhtosky avatar May 23 '17 01:05 fyhtosky

@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} 这两个是变量

Yalhu avatar May 23 '17 11:05 Yalhu

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

Yalhu avatar May 23 '17 11:05 Yalhu