yangxiao_1980 2014-08-27 04:02
浏览 953

jQuery代码是什么意思?

// 查询树形标准区域方法定义
function flashFuncTree() {
    $("#xtgl_bzqyglMain_tree").tree({
        data : {
           type : 'json',
           url : $webroot + '/com/yxd/pris/xtgl/bzqygl/queryTAkfAreaCodeForTree.action',
           async : true,
           async_data : function (NODE) {
            var paramTemp = $(NODE).attr("areaid");
            var idTemp = "";
            var isRootTemp = 1;
            if(typeof(paramTemp) != 'undefined'){//用户选择
                idTemp = paramTemp;
                isRootTemp = 0;
            }else{
                idTemp = common.all.initId;
            }
            return { id : idTemp ,isRoot : isRootTemp} 
        },
        method : 'GET'
    },
        callback : {
            onselect : function(NODE, TREE_OBJ) {
                // 设置父节点全局的变量
                setPfunCode($(NODE).attr("nodeCode"));
$("#xtgl_bzqyglMain_treegrid").flexSearch([{

name : "akfAreaCodeSearchModel.pareaId",
value : getPfunCode()
}]);
var title = "区域维护 : (" + $(NODE).attr("title") + ")下的区域";
$("#xtgl_bzqyglMain_treegrid").setGridTitle(title);
$("#xtgl_bzqyglMain_selectedId").val(getPfunCode());
$("#xtgl_bzqyglMain_selectedTitle").val($(NODE)
.attr("title"));
},
onJSONdata : function(DATA, TREE_OBJ) {
var re = DATA.result.children;
var removeattr = function(rootarray, attrs) {
if (rootarray) {
for (var i = 0, len = rootarray.length; i < len; i++) {
if (rootarray[i]) {
for (var j = 0, len = attrs.length; j < len; j++) {
delete rootarray[i].attributes[attrs[j]];
}
removeattr(rootarray[i].children, attrs);
}
}
}
}
// removeattr(re, ["target", "href", "flesh", "rel"]);
flag=true;
tns.reflushTree = function(){
TREE_OBJ.refresh($("#xtgl_bzqyglMain_tree"));
}
return re;
},
onopen : function() {
}
},
onload : function(TREE_OBJ) {setPfunCode($(NODE).attr("1")) },
ui : {
context : []
}
});
}

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号
    • ¥50 安装pyaudiokits失败
    • ¥15 计组这些题应该咋做呀
    • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
    • ¥15 让node服务器有自动加载文件的功能
    • ¥15 jmeter脚本回放有的是对的有的是错的
    • ¥15 r语言蛋白组学相关问题