做添加页面判断用户是否全部填写输入框

obj={
       matchid:$('.jumpList').attr('abc'),
       type:$('.insert').attr('abc'),
       status:$('.iptT').attr('abc'),
       sort:$('.iptF').val(),
       image:x
     };  
for (var x in obj) {
    console.log(x); // key
    console.log(obj[x]);//value
    if (obj[x] == undefined || obj[x] == '') {
      alert('请把信息填写完整');
      return false;
    }
  }
原文地址:https://www.cnblogs.com/SunShineM/p/7346403.html