數據獲取正常,但是這段代碼提示錯誤loadData(){? ? ? ? this.$http.get('static/data/data.json').then((res)=>{????????????????//this.data = res.body.list;? ? ? ? ? ????//console.log(this.data);? ? ? ? ? this.data = res.data.concat(this.data)? ? ? ? ? this.$nextTick(()=>{? ? ? ? ? ? if (!this.scroll) {? ? ? ? ? ? ? this.scroll = new BScroll(this.$refs.wrapper,{})? ? ? ? ? ? ? this.scroll.on('touchend',(pos)=>{? ? ? ? ? ? ? ? //下拉? ? ? ? ? ? ? ? if (pos.y > 50) {? ? ? ? ? ? ? ? ? this.loadData()? ? ? ? ? ? ? ? }? ? ? ? ? ? ? })? ? ? ? ? ? }else{? ? ? ? ? ? ? this.scroll.refresh();? ? ? ? ? ? }? ? ? ? ? })? ? ? ? })? ? ? }大家幫忙看看
添加回答
舉報
0/150
提交
取消