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>
本文来自博客园,作者:.net&new,转载请注明原文链接:https://www.cnblogs.com/wugh8726254/p/13027741.html