对比输入框两个值,同时存在或者同时为空

2021-10-12  本文已影响0人  匆白

// 判断第三方SpuId

if(_this.product.thirdSpuId && _this.product.thirdSkuId  || !_this.product.thirdSpuId && !_this.product.thirdSkuId){

    console.log("同时为空或者同时存在");

}else {

    console.log("只输入了一个值");

    return;

}

上一篇 下一篇

猜你喜欢

热点阅读