日期:2014-05-16 浏览次数:20486 次
@model List<GouJiuWang.Model.Module>
public ActionResult left()
{
string id =Request.Params["id"];
if (id == null || id.Equals(string.Empty))
id = "0";
List<GouJiuWang.Model.Module> list = bll.get_Modules_List(int.Parse(id));
return View(list);
}
<div id="big">
@foreach(var mo in Model){
<ul>
<li id="@(mo.ModId)" class="bmod"><a href="javascript:void(0)">@mo.ModName</a>
@foreach (var smo in Model)
{
<ul>
<li><a href="javascript:void(0)">@smo.ModName</a></li>
</ul>
}
</li>
</ul>
}
</div>
<script type="text/javascript">
$(function () {
$('ul li.bmod').bind("click", function () {
$.get('/BackGrounds/left', { id : $(this).attr("id")}, function (data) {
// alert(data);
});
&nbs