// 判断第三方SpuId
if(_this.product.thirdSpuId && _this.product.thirdSkuId || !_this.product.thirdSpuId && !_this.product.thirdSkuId){
console.log("同时为空或者同时存在");
}else {
console.log("只输入了一个值");
return;
}
// 判断第三方SpuId
if(_this.product.thirdSpuId && _this.product.thirdSkuId || !_this.product.thirdSpuId && !_this.product.thirdSkuId){
console.log("同时为空或者同时存在");
}else {
console.log("只输入了一个值");
return;
}
本文标题:对比输入框两个值,同时存在或者同时为空
本文链接:https://www.haomeiwen.com/subject/fwsdoltx.html
网友评论