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

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

提交以后右邊結(jié)果欄顯示跳轉(zhuǎn)到當(dāng)前頁面

<!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>表單驗(yàn)證插件</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">表單驗(yàn)證插件</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(

? ? ? ? ? ? ? ? ? {

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

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

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

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

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

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

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

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

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

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

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

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? );

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>


正在回答

2 回答

HTML部分,將頭部的js引用改為下面這樣:

<script?type="text/javascript"?src="http://"></script>
<script?type="text/javascript"?src="http://"></script>
<script?type="text/javascript"?src="http://">
</script>

js部分改為下面這樣:

<script?type="text/javascript">
????????????$(function?()?{
????????????????$("#frmV").validate(
??????????????????{
??????????????????????/*自定義驗(yàn)證規(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("郵箱驗(yàn)證成功!")
????????????????????????//?$(form).submit();
??????????????????????}
??????????????????}
????????????????);
????????????});
????????</script>


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

十指狂魔

html部分應(yīng)該是這樣的: <script type="text/javascript" src="//idcbgp.cn/data/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="//idcbgp.cn/data/jquery.validate.js"></script> <script type="text/javascript" src="//idcbgp.cn/data/jquery.validate.messages_cn.js"></script>
2019-04-09 回復(fù) 有任何疑惑可以回復(fù)我~

<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>



庫文件引用錯誤,JQ,JS不生效,記得在慕課網(wǎng)的鏈接地址中http://改成https://。?


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

維鎮(zhèn)

加上s之后也沒有變化
2018-09-29 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

提交以后右邊結(jié)果欄顯示跳轉(zhuǎn)到當(dāng)前頁面

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號