var start = $('#sech_startflowtacheid').val();
var end = $('#sech_endflowtacheid').val();
if(start > end){
alert('请选择起始流程小于结束流程!');
return false;
}else{
document.form1.submit();
}
如果start=45 ,end=90则 if(start > end)为false;
但是如果start=45,end=100+则 if(start > end)为true。
这是什么原因?
var end = $('#sech_endflowtacheid').val();
if(start > end){
alert('请选择起始流程小于结束流程!');
return false;
}else{
document.form1.submit();
}
如果start=45 ,end=90则 if(start > end)为false;
但是如果start=45,end=100+则 if(start > end)为true。
这是什么原因?
if(parseInt(start) > parseInt(end))
看来我得好好看看我的js权威指南了