标签:
var sysModule=[];
var treeJson = <%=(sysModule) %>;
if (treeJson.length == 0) $("#content").html("");
$(treeJson).each(function (i, menu) {
console.log(i);
console.log(menu);
var item ="";
$(menu.children).each(function (j, submenu) {
item += "<li><a href=\""+submenu.Url+"\"><i
class=\""+submenu.icon+"\"></i><span
class=\"hidden-tablet\">"+submenu.Name+"</span></a></li>";
});
$("#nav_menu").html(item);
});
标签:
原文地址:http://www.cnblogs.com/change4now/p/5664981.html