WebPortal_TongZhou/02.UI/script/expandedresource.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*************************************************************
Description : 获取扩展资源列表
area : 显示区域
chapterid : 章节编号
name : 名称
location : 显示位置,1:首页,21:自定义页面1
*************************************************************/
function getExpandedResourceList_list_js(_area, _chapterid, _title, _location) {
$(_area).html(""); //清空列表中的数据
var show = "1";
var chapterid = "";
var title = "";
var title_url = "";
var url = "";
var target = "";
var json_url = "";
var pic = "";
var pic_root = "";
var pic_url = "";
var description = "";
var print = "";
if (_location == "1") {
json_url = "common/ashx/learning/info/expandedresource_view.ashx?type=list";
//pic_root = "upload/learning/expandedresource/images/";
} else if (_location == "21") {
json_url = "../../../common/ashx/learning/info/expandedresource_view.ashx?type=list";
//pic_root = "../../../upload/learning/expandedresource/images/";
}
$.ajax({
type: "GET",
url: json_url,
dataType: "json",
cache: false,
success: function(data) {
print += "<table style='width:100%'>";
$.each(data, function(i, item) {
chapterid = item.chapterid;
title = item.title;
description = item.description;
if (_location == "1") {
url = item.url_root;
target = item.target_root;
pic = item.pic_root;
} else if (_location == "21") {
url = item.url_custom_1;
target = item.target_custom_1;
pic = item.pic_custom_1;
}
if (_chapterid.length > 0) {
if (_chapterid == chapterid) {
show = 1;
}
后面还有 47 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。