SourceCode/jiouosdp/Scripts/jquery.validate/tzoa.jquery.validate.js
(开头部分) 42KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery Validation Plugin 1.9.0
*
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://docs.jquery.com/Plugins/Validation
*
* Copyright (c) 2006 - 2011 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function($) {
$.extend($.fn, {
// http://docs.jquery.com/Plugins/Validation/validate
validate: function (options) {
if (options == undefined || options == null)
options = new Object();
if (!options.method)
options.method = "float";
//zhao
if (options.method == "float") {
$.validator.setDefaults({
submitHandler: function (form) {
form.submit();
},
errorPlacement: function (error, element) {
if (element.data("haveTip")) {
element.poshytip('update', error.text());
}
else {
element.data("haveTip", 1);
element.poshytip({
className: "tip-yellow",
alignTo: 'target',
//bgImageFrameSize: 60,//气泡的大小
alignTo: 'target',
alignX: 'inner-left',
alignY: 'bottom',
offsetX: 0,
offsetY: 10,
showTimeout: 100,
content: error.text()
});
}
error.data("element", element);
},
success: function (label) {
var element = label.data("element");
if (element) {
label.removeData("element");
element.removeData("haveTip");
element.poshytip('disable');
}
},
后面还有 1231 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。