普通网友 2017-04-05 02:00 采纳率: 44.4%
浏览 956

新到了一家公司 这用的是什么JS 看不懂啊 求老鸟帮吗看下

/**
 * 用户管理
 */
var leftSchoolModule = function (o) {
    this.module = "leftSchool",
    this.action = "leftSchool",
    this.moduleId  = "#leftSchoolHomeArticle",
    this.articleId = "",
    this.tabActive = null,
    this.deferred = {}, 
    this.debug = false,
    this.format = o;
}; 
/**
 * 渲染主页布局
 */
leftSchoolModule.prototype.home = function(o) {
    this.articleId = "Home";
    renderTplUrl = null,
    renderTpl = {renderObj:leftSchool.moduleId, renderOnObj:"", renderHtml:iyyIV +"/modules/ihr/leftSchool/html/leftSchoolHome.html"};
    icmInit.renderTpl({'renderTplUrl':renderTplUrl,'renderTpl':renderTpl,'deferred':$.Deferred()});
}; 
 leftSchoolModule.prototype.searchGridRows = function(o) {
    if("object" != typeof o)return;
    $(leftSchool.moduleId).off('submit').on('submit',o.renderTpl.renderOnObj, o, function(event, state) {
        event.preventDefault();// 阻止a链接的跳转行为
        leftSchool.articleId = "ModuleGrid",searchDeferred={},arrList= new Array();

        arrList.push(o.renderTplUrl.params);
        arrList.push(icmInit.serializeForm({'_this':$(this),'type':'json'}));
        o.renderTplUrl.params = icmInit.merge({type:"json",arrList:arrList});

        leftSchool.modualGrid({renderTplUrl:o.renderTplUrl,renderTpl:o.renderTpl});//渲染右侧table栏
        //前置请求条件
        event.stopPropagation(); // 是停止事件传递 , 并不影响它后面的代码执行。
        return ;
    }); 
};
  • 写回答

4条回答 默认 最新

  • Go 旅城通票 2017-04-05 02:34
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器