摘要: /判断输入内容是否为空 function IsNull(){ var str = document.getElementById('str').value.trim(); if(str.length==0){ alert('对不起,文本框不能为空或者为空格!');//请将“文本框”改成你需要验证的属 阅读全文
posted @ 2016-05-28 15:07 宇宇宇wy 阅读(112) 评论(0) 推荐(0)