可以给more添加一个click事件toggleMore,可以实现收起更多:
toggleMore:function() {
if(this.limitNum==3){
this.limitNum=this.addressList.length;
}else{
this.limitNum=3;
}
}
toggleMore:function() {
if(this.limitNum==3){
this.limitNum=this.addressList.length;
}else{
this.limitNum=3;
}
}
2017-09-06
cart.js:20 Uncaught (in promise) TypeError: Cannot read property 'result' of undefined
这是啥意思,照着老师的:
this.$http.get("data/cartData.json",{"id":123}).then(function (res) {
_this.productList = res.body.result.list;
_this.totalMoney = res.body.result.totalMoney;
这是啥意思,照着老师的:
this.$http.get("data/cartData.json",{"id":123}).then(function (res) {
_this.productList = res.body.result.list;
_this.totalMoney = res.body.result.totalMoney;
2017-09-05
最赞回答 / qq_疯子小帽_03422120
我会了,this.$set(item, 'checked', true)写,还有就是在html里面点击的时候要加上参数,千万别忘了
2017-09-05