dataType : "json",
url : 'servlet/AccordAjax',//servlet路径
success : function(data) {
$
.each(
data,
function(i, n) {
$('#menu')
.accordion(
'add',
{
title : n.name,
selected : false,
//content : "<ul id='tree-" + n.id + "'></ul>"
});
});
}
});
$('#menu').accordion({
autoHeight : false,
navigator : true,
onSelect : function(title, index) {
//alert("title:" + title + " " + "index:" + index);
怎么点击模块,加载模块的功能菜单呢?
千湖之梦
相关分类