PHP ??? ?? ?? ????: js? ???? ??? ???? ??? ??
js? ???? ??? ???? ???? ?????
<script> function CheckPost() { if(myform.user.value=="") { alert("請(qǐng)?zhí)顚懹脩?quot;); myform.user.focus(); return false; } if (myform.title.value.length<5) { alert("標(biāo)題不能少于5個(gè)字符"); myform.title.focus(); return false; } if (myform.content.value=="") { alert("內(nèi)容不能為空"); myform.content.focus(); return false; } } </script>
?? ???? js ??? ???? ??? ??? ???? ???? ?? ??? ?? ? ????.
? ?? ?? ???
1. js? ???? ??? ?? ???? ???? ?????.