javascript最
简洁的输入空值检测:
<input οnblur="if(this.value.replace(/^/s |/s $/g,'')=='')alert('不能为空!')" name="planname" type="text" >
javascript最
简洁的输入空值检测:
<input οnblur="if(this.value.replace(/^/s |/s $/g,'')=='')alert('不能为空!')" name="planname" type="text" >