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

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

為啥沒反應啊

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" content="text/html">

<script src = "D:\mycode\jquery-3.2.1.js"></script>

<script src = "D:\mycode\jquery.validate-1.13.1.js"></script>

<link rel="stylesheet" type="text/css" href="css/validform.css">

<title>validation Demo</title>

</head>

<body>

<form id = "form1">

<fieldset>

<legend>用戶登錄</legend>

<p>

<LABEL for = "username">用戶名</LABEL>

<input type="text" name="username" id="username">

</p>


<p>

<LABEL for = "password">密碼</LABEL>

<input type="text" name="password" id="password">

</p>


<p>

<input type="submit" value="登錄">

</p>

</fieldset>

</form>


<script type = "text/javascript">

$(document).ready(function(){

alter("sadd");

$("#form1").validate({

rules:{

username:{

required:true,

minilength:2,

maxlength:10

},

password:{

required:true,

minilength:2,

maxlength:10

}

}

});

});

</script>

</body>

</html>


正在回答

2 回答

找到問題了,alter那句錯了,刪了就行了。

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

<meta charset="utf-8" content="text/html">

<script src = "D:\mycode\jquery-3.2.1.js"></script>

<script src = "D:\mycode\jquery.validate-1.13.1.js"></script>

<link rel="stylesheet" type="text/css" href="css/validform.css">

這幾行代碼有錯誤

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

舉報

0/150
提交
取消

為啥沒反應啊

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

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

幫助反饋 APP下載

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

公眾號

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