easyui 怎么获取选择子节点及父节点 的值
1个回答
展开全部
$('#combotree-scene-id').combotree({
url: "<c:url value='/scene/ajaxGetBizsystem?sceneType=${sceneType}'/>",
checkbox:true,
multiple:true,
async:false,
method:'get',
onLoadSuccess:function(node, data){
formatComboTreeValue();
},
onCheck:function(node, checked){
formatComboTreeValue();
},
onClick:function(node, checked){
formatComboTreeValue();
}
});
}
function formatComboTreeValue() {
var value = $('#combotree-scene-id').combotree('getText');
if(value.indexOf("根节点,") >= 0) {
var endIndex = value.indexOf(',');
value = value.substring(endIndex+1);
$('#combotree-scene-id').combotree('setText', value);
}
}
url: "<c:url value='/scene/ajaxGetBizsystem?sceneType=${sceneType}'/>",
checkbox:true,
multiple:true,
async:false,
method:'get',
onLoadSuccess:function(node, data){
formatComboTreeValue();
},
onCheck:function(node, checked){
formatComboTreeValue();
},
onClick:function(node, checked){
formatComboTreeValue();
}
});
}
function formatComboTreeValue() {
var value = $('#combotree-scene-id').combotree('getText');
if(value.indexOf("根节点,") >= 0) {
var endIndex = value.indexOf(',');
value = value.substring(endIndex+1);
$('#combotree-scene-id').combotree('setText', value);
}
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询