if中的判断中有无空格。。。
摘要:
btn.onclick=function(){ if(txt1.value!=" "&&txt2.value!=" "){//此中不加空格,为判断是否为字符串,加空格,才为内容判断 if(!isNaN(txt1.value)&&!isNaN(txt2.value)){ ... 阅读全文
posted @ 2015-09-06 11:18 终始 阅读(1196) 评论(0) 推荐(0)
posted @ 2015-09-06 11:18 终始 阅读(1196) 评论(0) 推荐(0)