mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
封装后台js框架,编写文档模块的列表、新增修改
This commit is contained in:
@ -31,14 +31,29 @@
|
||||
var path_json = $(this).attr("datajson");
|
||||
|
||||
var index = freejs.showLoading({ msg: "数据加载中......" });
|
||||
$("#page_content").load(path_item, $.parseJSON(path_json), function () {
|
||||
//初始化绑定页面的时间,例如时间控件
|
||||
$("#page_content").load(path_item, $.parseJSON(path_json), function (responseText, textStatus, jqXHR) {
|
||||
freejs.closeLoading(index);
|
||||
index = -1;
|
||||
layui.use('form', function () {
|
||||
var form = layui.form;
|
||||
switch (textStatus) {
|
||||
case "success":
|
||||
//初始化绑定页面的时间,例如时间控件
|
||||
index = -1;
|
||||
layui.use('form', function () {
|
||||
var form = layui.form;
|
||||
|
||||
});
|
||||
});
|
||||
break;
|
||||
//case "notmodified":
|
||||
//case "error":
|
||||
//case "timeout":
|
||||
//case "parsererror":
|
||||
//spf.loadHtml(mcid, "/Service/Error/", function (jElement, responseText) {
|
||||
// loadResultShow(jElement, responseText, spTitle, spHead);
|
||||
//});
|
||||
//break;
|
||||
case "error":
|
||||
$("#page_content").html(responseText);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
//如果出现长时间未关闭,定时关闭loading
|
||||
|
Reference in New Issue
Block a user