日期:2014-05-16  浏览次数:20355 次

为什么对话框没有提示呀?
if   (Numter(theForm.plannum.value)   > =   Numter(theForm.amount.value)   ){
                                alert( "计划数量不能大于收料数量 ")
theForm.plannum.focus();
return(false);
}

------解决方案--------------------
不知道
------解决方案--------------------
计划数量不能大于收料数量
和> =冲突

Numter -> Number -> parseInt(...,10);
------解决方案--------------------
if (parseInt(theForm.plannum.value, 10) > = parseInt(theForm.amount.value, 10) ){
alert( "计划数量不能大于收料数量 ")
theForm.plannum.focus();
return(false);
}
这样看看