syxx5512
syxx5512
2017-11-14 08:32

js中getElem是getElement的简写吗?获取的是id还是name?

  • javascript

var setting = {data:{simpleData:{enable:true,idKey:"id",pIdKey:"pId",rootPId:'0'}},
callback:{onClick:function(event, treeId, treeNode){
var beginApplyDate = getElem('beginEndDate');
var endApplyDate = getElem('endEndDate');
var id = treeNode.id == '0' ? '' :treeNode.id;
$('#zghMail').attr("src","${ctx}/zghmail/zghMail/list?office.id="+id+"&office.name="+treeNode.name.split('(')[0]+
"&beginApplyDate="+beginApplyDate+"&endApplyDate="+endApplyDate);
}
}
};

    请问:getElem是getElement的简写吗?获取的是id还是name?
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答