亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

我的代碼怎么在頁面上沒有顯示?

<body>
<form id="demoForm">
<fieldset>
<legend>用戶登錄</legend>
<p>
<label for="username">用戶名</label>
<input type="text" id="username" name="username">
</p>
<p>
<label for="password">密碼</label>
<input type="password" id="password" name="password">
</p>
<p>
<input type="submit"value="登錄">
</p>
</fieldset>
</form>
<script src="js/jquery-1.10.0.min.js"></script>
<script? src="js/jquery.validate-1.13.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
?? ?$("#demoForm").validate({
?? ??? ?rules:{
?? ??? ??? ?username:{
?? ??? ??? ??? ?required:true,
?? ??? ??? ??? ?minlength:2,
?? ??? ??? ??? ?maxlength:10
?? ??? ??? ?},
?? ??? ??? ?password:{
?? ??? ??? ??? ?required:true,
?? ??? ??? ??? ?minlength:2,
?? ??? ??? ??? ?maxlength:16
?? ??? ??? ?}
?? ??? ?},
?? ??? ?messages:{
?? ??? ??? ?username:{
?? ??? ??? ??? ?required:"必須填寫用戶名",
?? ??? ??? ??? ?rangelength:"用戶名應該在2-10位",?? ??? ??? ??? ?
?? ??? ??? ?},
?? ??? ??? ?password:{
?? ??? ??? ??? ?required:"必須填寫密碼",
?? ??? ??? ??? ?rangelength:"密碼應該在2-16位",?? ?
?? ??? ??? ?}

?? ??? ?}
?? ?});
});
</script>
</body>

正在回答

1 回答

哎,js名稱寫錯了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

我的代碼怎么在頁面上沒有顯示?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號