layUI+mvc动态菜单获取2


<div class="left-nav">
<div id="side-nav">
<ul id="nav">

</ul>
</div>
</div>
<script src="~/Scripts/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(function () {
$.ajax({
type: "POST",
url: "/Main/LoadMenu",
success: function (data) {
$("#nav").html(data);
},
error: function (data) {
alert(22);
alert(data);

}
});
});
</script>

 

layUI+mvc动态菜单获取2

上一篇:[05]HTML基础之表格标签


下一篇:layUI+mvc动态菜单获取1