440petSaleWeb/Web/js/main_load.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var navTitle = "";
function initTopTab(){
$.each(menu, function (k, v) {
var item = $('<li><a class="link" href="javascript:;" id="tab_' + k + '">' + v.text + '</a></li>');
item.children('a').click(function () { var tabName = this.id.substr(4); if (tabName == currTab) { return; } switchTab(tabName); openItem(); });
$('#nav').append(item);
if (k != currTab) {
item = $('<dl><dt>' + v.text + '</dt></dl>');
$.each(v.children, function (k1, v1) {
if (v1.text != 'spliter') {
item.append($('<dd><a href="javascript:;" onclick="openItem(\'' + k1 + '\',\'' + k + '\');none_fn();">' + v1.text + '</a></dd>'));
}
else {
item.append($('<dd class="spliter"><a href="javascript:;"></a></dd>'));
}
});
$(".back_nav_list").append(item);
}
});
/* 切换到默认选项卡 */
switchTab(currTab);
openItem(firstOpen[1], firstOpen[0]);
$('#iframe_refresh').click(function () {
tipLoadding();
$('#workspace').get(0).contentWindow.location.reload();
});
$('#clear_cache').click(function () {
tipLoadding();
$('#workspace').attr('src', "./systems/clearcache.aspx?url=" + $('#workspace').get(0).contentWindow.location);
});
var copyitem = $('<dl style=" color:#ccc; margin:5px 0px 0px 8px;">' + pntCopyright + '</dl>');
$('#leftMenus').append(copyitem);
}
function initHistory(){
readHistory();
$(window).unload(saveHistory);
}
function readHistory() {
$('#historyText').html('操作历史');
var h = $.getCookie('actionHistory');
if (h != '' && h != 'undefined') {
var error = false;
var arr = h.split(',').reverse();
$.each(arr, function () {
var tmp = this.split('-');
if (typeof (menu[tmp[0]]) != 'undefined' && typeof (menu[tmp[0]]['children'][tmp[1]]) != 'undefined') {
addHistoryItem(tmp[0], tmp[1]);
}
});
if (error == false) {
if (arr.length) {
firstOpen = arr[arr.length - 1].split('-');
}
}
}
后面还有 267 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。