本地测试提示信息为什么是英文???
<!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">表单验证插件</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({
//自定义验证规则
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: "请输入合法的网址",
date: "请输入合法的日期",
dateISO: "请输入合法的日期 (ISO).",
number: "请输入合法的数字",
digits: "只能输入整数",
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;
}
------------------------------
本地测试提示信息为什么是英文?我已经引入了"additional-methods2.js"啊。