if(){}
else{
item.checked = !item.checked;
var _this = this;
this.productList.forEach(function(item,index){
if(item.checked == true) {
_this.checkedFlag = true;
} else {
_this.checkedFlag = false;
}
})
}
else{
item.checked = !item.checked;
var _this = this;
this.productList.forEach(function(item,index){
if(item.checked == true) {
_this.checkedFlag = true;
} else {
_this.checkedFlag = false;
}
})
}
2018-03-16
chrome抱跨域请求限制的解决办法:给chrome添加启动参数:--allow-file-access-from-files
2018-03-15
loadMore(){
if(this.limitNum==3){
this.limitNum=this.addressList.length;
this.loadMoreText='收起';
}else {
this.limitNum=3;
this.loadMoreText='more';
}
}
if(this.limitNum==3){
this.limitNum=this.addressList.length;
this.loadMoreText='收起';
}else {
this.limitNum=3;
this.loadMoreText='more';
}
}
2018-03-14
写入cart.js 就报错cartData.json
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https
2018-03-13
https://github.com/azhizhizhizhizhi/vue-shoppingcat 全部项目的源码,记得点个星哦
2018-03-11