Array.prototype.slice.call(),获取属性对象

	var xxxArray=Array.prototype.slice.call($("input[name$='xxx']"));
		if (xxxArray.some(item => { return parseFloat(item.value) <=  0})) {
            js.showMessage("数量应>0!");
			return false;
		}else{
            $("#inputForm").submit();
		}

 

你可能感兴趣的:(js)