2015-04-07 05:56:00 +02:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
define( ["jquery", "../jquery.validate"], factory );
|
2019-01-11 01:27:19 +01:00
|
|
|
} else if (typeof module === "object" && module.exports) {
|
|
|
|
module.exports = factory( require( "jquery" ) );
|
2015-04-07 05:56:00 +02:00
|
|
|
} else {
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
|
|
|
}(function( $ ) {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Translated default messages for the jQuery validation plugin.
|
|
|
|
* Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
|
|
|
|
*/
|
2019-01-11 01:27:19 +01:00
|
|
|
$.extend( $.validator.messages, {
|
|
|
|
required: "这是必填字段",
|
|
|
|
remote: "请修正此字段",
|
|
|
|
email: "请输入有效的电子邮件地址",
|
2015-04-07 05:56:00 +02:00
|
|
|
url: "请输入有效的网址",
|
|
|
|
date: "请输入有效的日期",
|
|
|
|
dateISO: "请输入有效的日期 (YYYY-MM-DD)",
|
2019-01-11 01:27:19 +01:00
|
|
|
number: "请输入有效的数字",
|
|
|
|
digits: "只能输入数字",
|
2015-04-07 05:56:00 +02:00
|
|
|
creditcard: "请输入有效的信用卡号码",
|
|
|
|
equalTo: "你的输入不相同",
|
|
|
|
extension: "请输入有效的后缀",
|
2019-01-11 01:27:19 +01:00
|
|
|
maxlength: $.validator.format( "最多可以输入 {0} 个字符" ),
|
|
|
|
minlength: $.validator.format( "最少要输入 {0} 个字符" ),
|
|
|
|
rangelength: $.validator.format( "请输入长度在 {0} 到 {1} 之间的字符串" ),
|
|
|
|
range: $.validator.format( "请输入范围在 {0} 到 {1} 之间的数值" ),
|
|
|
|
step: $.validator.format( "请输入 {0} 的整数倍值" ),
|
|
|
|
max: $.validator.format( "请输入不大于 {0} 的数值" ),
|
|
|
|
min: $.validator.format( "请输入不小于 {0} 的数值" )
|
|
|
|
} );
|
|
|
|
return $;
|
2015-04-07 05:56:00 +02:00
|
|
|
}));
|