TrainSignManage/WebFrame/myJS/common_validate.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function CloseModal() {
$('#modal-AddOrUpdate').modal('hide');
}
function OpenModal(url, title, width,height) {
// $("#dialogContent").height(Math.max($(window).height() - height));
$(".modal-dialog").width(width);
$("#dialogContent").height(height);
var frameSrc = url;
//$(".modal-title").html(title);
$("#Commonframe").attr("src", frameSrc);
$('#modal-AddOrUpdate').modal({ show: true, backdrop: 'static' });
}
function showLoading(msg, delay) {
/// <param name="msg" type="String">待显示的文本,非必填</param>
/// <param name="delay" type="Int">延时显示的毫秒数,默认100毫秒显示,非必填</param>
if (!delay)
delay = 100;
var loading = $('<div class="ajax-loading" style="display:none"><table height="100%" width="100%"><tr><td align="center"><p>' + (msg ? msg : '') + '</p></td></tr></table></div>');
loading.appendTo('body');
var s = setTimeout(function () {
if ($(".ajax-loading").length > 0) {
loading.show();
$('.container,.login-box').addClass('blur');
}
}, delay);
return {
close: function () {
clearTimeout(s);
loading.remove();
$('.container,.login-box').removeClass('blur');
}
}
}
Date.prototype.format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
fmt = fmt || "yyyy-MM-dd";
if (/(y+)/.test(fmt))
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt))
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
后面还有 150 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。