layUI+mvc动态菜单获取left_menu.cshtml


<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>

 

posted @ 2020-06-01 21:58  .net&new  阅读(411)  评论(0编辑  收藏  举报