KingNET.WebUI/Scripts/common.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
InitDrop();
//初始化页签
var _cura = $('.g-tit .current a');
if (_cura.length > 0) {
$("#" + _cura.attr("ibstabid")).show().siblings("[id*=" + _cura.attr("prefix") + "]").hide();
}
$(".g_grid :checkbox[id=g_tmsSelAll]").unbind("click").live("click", function () {
var ele = $(this),
chs = ele.closest("table").find("tbody :checkbox");
chs.attr("checked", ele.attr("checked") ? true : false);
});
$(".g_grid tbody").find(":checkbox").unbind("click").live("click", function () {
var chs = $(this).closest("tbody").find(":checkbox");
$(this).closest("table").find("#g_tmsSelAll").attr("checked", chs.length == chs.filter(":checked").length ? true : false);
});
});
function InitDrop() {
$(".g_dropwp>ul").css("width", $(".g_drop").width() - 4)
$(".g_dropwp").hover(function () {
$(this).find("ul").removeClass("g_d_n");
}, function () {
$(this).find("ul").addClass("g_d_n");
});
}
function ClearTip(el, txt) {
if ($.trim(el.value) == txt) {
el.value = "";
el.focus();
}
else if ($.trim(el.value) == "") {
el.value = txt;
}
}
/**
* @constructor
* @description 日期转换 将2013/10/24形式转换成2013-10-24形式
* @grammar ConvertDateFormat(strDate, sye)
* @param {String} strDate 如 2013/10/24
* @param {String} sye 格式串 可以为("ym","md","ymd hm","ymd hms","hm")五种格式的任意一种
* @return {Date} 返回的日期格式
* @example ConvertDateFormat("2013/10/24","ymd hms") //输出 "2013-08-24 00:00:00"
*/
//将日期转换成"yyyy-mm-dd"格式 第二个参数为返回类型传入'ym':yyyy-mm,'md':mm-dd,'ymd hm','ymd hms',默认为'yyyy-mm-dd'
function ConvertDateFormat(strDate, sye) {
if (strDate == null || strDate == "" || strDate == "0") {
return ("");
}
else {
try {
var ExDate = new Date(strDate.replace(/-/g, "/"));
var yyyy = ExDate.getFullYear();
var mm = ExDate.getMonth() + 1;
mm = mm < 10 ? "0" + mm : mm;
var dd = ExDate.getDate();
dd = dd < 10 ? "0" + dd : dd;
var hh = ExDate.getHours();
后面还有 147 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。