$(function(){ $("div[id^='c_portalResGroupNavNew_main']").attr("loaded","true"); $("div[id^='c_portalResGroupAtlas_category']").attr("loaded","true"); $("div[id^='c_portalResGroupEbizads_banner']").attr("loaded","true"); $("div[id^='c_portalResGroupNewsNew_list']").attr("loaded","true"); $("div[id^='c_portalResGroupColumn_detail']").attr("loaded","true"); $("div[id^='c_portalResGroupContent_list']").attr("loaded","true"); $("div[id^='c_portalResGroupProduct_list']").attr("loaded","true"); }); //异步获取数据  /** * 请求数据函数 * scp:作用域,可以为{} * glp:全局参数,可以为{} * url:异步请求的url * method: 异步请求url的请求类型,GET | POST * callback : 回调函数,处理响应数据 */ var ajaxQueryFun = function (scp, glp, url, obj, method, callback) { var param = {}; param.request_url = url; param.url_param = obj; param.requst_type = method; if (glp.isMock == true) { param.url_param.isMock = true; } var paramStr = encodeURIComponent(encodeURIComponent(JSON.stringify(param))); require(["md5"], function (s) { var sign = $.md5Sign(JSON.stringify(param)); $.ajax({ type: method, url: "/comp/portalRouter", //后台框架路由 data: { sign:sign, param:paramStr }, success: function (obj) { callback(obj); }, error: function () { console.log("取数据出现错误"); } }); }); };