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

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

本地測試提示信息為什么是英文???

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

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>validate</title>

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

? ? <script src="jquery 1.12.2.js" type="text/javascript"></script>

? ? <script src="jquery.validate.js" type="text/javascript"></script>

? ? <script src="additional-methods2.js" type="text/javascript"></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>

-------------------------

// JavaScript Document/*

?/* Translated default messages for the jQuery validation plugin.

?* Language: CN

?* Author: Fayland Lam <fayland at gmail dot com>

?*/

jQuery.extend(jQuery.validator.messages, {

? ? ? ? required: "必選字段",

remote: "請修正該字段",

email: "請輸入正確格式的電子郵件",

url: "請輸入合法的網(wǎng)址",

date: "請輸入合法的日期",

dateISO: "請輸入合法的日期 (ISO).",

number: "請輸入合法的數(shù)字",

digits: "只能輸入整數(shù)",

creditcard: "請輸入合法的信用卡號",

equalTo: "請再次輸入相同的值",

accept: "請輸入擁有合法后綴名的字符串",

maxlength: jQuery.format("請輸入一個長度最多是 {0} 的字符串"),

minlength: jQuery.format("請輸入一個長度最少是 {0} 的字符串"),

rangelength: jQuery.format("請輸入一個長度介于 {0} 和 {1} 之間的字符串"),

range: jQuery.format("請輸入一個介于 {0} 和 {1} 之間的值"),

max: jQuery.format("請輸入一個最大為 {0} 的值"),

min: jQuery.format("請輸入一個最小為 {0} 的值")

});

-------------------------

@charset "utf-8";

/* CSS Document */

@charset "utf-8";

/* CSS Document */

#divtest

{

? ? width: 282px;

}

#divtest .title

{

? ? padding: 8px;

? ? background-color:Blue;

? ? color: #fff;

? ? height: 23px;

? ? line-height: 23px;

? ? font-size: 15px;

? ? font-weight: bold;

}

#divtest .content

{

? ? padding: 8px 0px;

? ? background-color: #fff;

? ? font-size: 13px;

}

#divtest .content .tip

{

? ? color:red;

? ? font-size: 12px;

}

.fl

{

? ? float: left;

}

.fr

{

? ? float: right;

}

------------------------------

本地測試提示信息為什么是英文?我已經(jīng)引入了"additional-methods2.js"啊。


正在回答

1 回答

你到9-1的那節(jié)去看一下,有一個插件你沒有加,在練習(xí)的代碼里加了一個提示信息顯示為中文的插件


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


cn代表中文

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

Python程序猿 提問者

非常感謝!
2016-05-02 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
jQuery基礎(chǔ)課程
  • 參與學(xué)習(xí)       154723    人
  • 解答問題       7289    個

加入課程學(xué)習(xí),有效提高前端開發(fā)速度

進(jìn)入課程

本地測試提示信息為什么是英文???

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

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

幫助反饋 APP下載

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

公眾號

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