问题1 为啥index要加$ 我是4.1版本的 不加$就不行
问题2 为啥我在这里console currentIndex老是=0?代码如下
created () {
this.classMap = ['decrease', 'discount', 'special', 'invoice', 'guarantee']
this.$http.get('/api/goods').then((response) => {
response = response.body
if (response.errno === ERR_OK) {
this.goods = response.data
this.$nextTick(() => {
this._initScroll()
this._calculateHeight()
console.log(this.currentIndex)
})
掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp
了解课程