异步超链接

     <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>



@Ajax.ActionLink("获取服务器时间", "GetDate", "Cate", new AjaxOptions() { HttpMethod = "post", UpdateTargetId = "dateSpan", InsertionMode = InsertionMode.Replace }) @*<a data-ajax="true" data-ajax-method="post" data-ajax-mode="after" data-ajax-update="#dateSpan" href="/Cate/GetDate">获取服务器时间</a>*@ <div id="dateSpan" class="dateSpan">asdf</div>

 

posted @ 2014-04-07 08:11  bl84757922  阅读(302)  评论(0编辑  收藏  举报