js对字符串判空

 if (this.form2.yifei == undefined || this.form2.yifei.replace(/ /g,"")==""){
    
    
            this.$message.error("请勿输入空值");
            return;
          }

猜你喜欢

转载自blog.csdn.net/a864034462/article/details/131987057