js判断文本框是否为空function check(){ var oName = document.myform.nameif(oName .value.length==0){ alert("不能为空")oName.focus()return2023-02-21JavaScript180