第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

下面這代碼為什么會跳到當前頁面

<!DOCTYPE html>

<html xmlns="https://www.w3.org/1999/xhtml">

? ? <head>

? ? ? ? <title>表單驗證插件</title>

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

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery.validate.js"></script>

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery.validate.messages_cn.js"></script>

? ? </head>

? ? <body>

? ? ? ? <form id="frmV" method="get" action="#">

? ? ? ? ? ? <div id="divtest">

? ? ? ? ? ? ? ? <div class="title">

? ? ? ? ? ? ? ? ? ? <span class="fl">表單驗證插件</span>?

? ? ? ? ? ? ? ? ? ? <span class="fr">

? ? ? ? ? ? ? ? ? ? ? ? <input id="btnSubmit" type="submit" value="提交" />

? ? ? ? ? ? ? ? ? ? </span>

? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? ? ? <div class="content">

? ? ? ? ? ? ? ? ? ? <span class="fl">郵箱:</span><br />

? ? ? ? ? ? ? ? ? ? <input id="email" name="email" type="text" /><br />

? ? ? ? ? ? ? ? ? ? <span class="tip"></span>

? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? </div>

? ? ? ? </form>

? ? ? ??

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? $("#frmV").validate(

? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? /*自定義驗證規(guī)則*/

? ? ? ? ? ? ? ? ? ? ? rules: {

? ? ? ? ? ? ? ? ? ? ? ? ? ? email:{

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? required:true,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? email:true

? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? ? /*錯誤提示位置*/

? ? ? ? ? ? ? ? ? ? ? errorPlacement: function (error, element) {

? ? ? ? ? ? ? ? ? ? ? ? ? error.appendTo(".tip");

? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? );

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


正在回答

4 回答

<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html?xmlns="http://www.w3.org/1999/xhtml">
????<head>
????????<title>表單驗證插件</title>
????????<link?href="style.css"?rel="stylesheet"?type="text/css"?/>
????????<script?type="text/javascript"?src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>
????????<script?type="text/javascript"?src="http://idcbgp.cn/data/jquery.validate.js"></script>
????????<script?type="text/javascript"?src="http://idcbgp.cn/data/jquery.validate.messages_cn.js"></script>
????</head>
????<body>
????????<form?id="frmV"?method="get"?action="#">
????????????<div?id="divtest">
????????????????<div?class="title">
????????????????????<span?class="fl">表單驗證插件</span>?
????????????????????<span?class="fr">
????????????????????????<input?id="btnSubmit"?type="submit"?value="提交"?/>
????????????????????</span>
????????????????</div>
????????????????<div?class="content">
????????????????????<span?class="fl">郵箱:</span><br?/>
????????????????????<input?id="email"?name="email"?type="text"?/><br?/>
????????????????????<span?class="tip"></span>
????????????????</div>
????????????</div>
????????</form>
????????
????????<script?type="text/javascript">
????????????$(function?()?{
????????????????$("#frmV").validate(
??????????????????{
??????????????????????/*自定義驗證規(guī)則*/
??????????????????????rules:?{
????????????????????????????email:{
????????????????????????????????required:?true,
????????????????????????????????email:?true
????????????????????????????}
??????????????????????},
??????????????????????/*錯誤提示位置*/
??????????????????????errorPlacement:?function?(error,?element)?{
??????????????????????????error.appendTo(".tip");
??????????????????????},
??????????????????????submitHandler:?function(form)?{
????????????????????????//?some?other?code
????????????????????????//?maybe?disabling?submit?button
????????????????????????//?then:
????????????????????????alert("郵箱驗證成功!")
????????????????????????//?$(form).submit();
??????????????????????}
??????????????????}
????????????????);
????????????});
????????</script>
????</body>
</html>

改成上面這樣應該就行了

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

qq_蝕_1

我想知道你改了哪里 除了最下面的地方 我全粘代碼可以但是只粘最后幾行不行
2019-08-05 回復 有任何疑惑可以回復我~
#2

十指狂魔 回復 qq_蝕_1

問題能解決就行
2019-10-31 回復 有任何疑惑可以回復我~

我終于知道哪里錯了

rules:?{
????????????????????????????email:{
????????????????????????????????required:true,
????????????????????????????????email:true
????????????????????????????}
??????????????????????????}
??????????????????????},

你們看,這里多了一個右括號

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

action這個屬性就是跳轉到某頁面的URL,只是這里沒填鏈接,填井號表示默認本頁面

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

action="#", 這個#好像就是會跳到當前頁面

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

舉報

0/150
提交
取消

下面這代碼為什么會跳到當前頁面

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

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號

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