在 Home Created Index as on View 和 PartialView as ViewData
但是 Div 没有得到刷新。
<script type="text/javascript">
$(document).ready(function () {
var refreshid = setInterval(function () {
alert("test");
$("#dynamictabs").load("/Home/Index/")
}, 9000);
$.ajaxSetup({ cache: false });
});
</script>
<div class="dynamictabs">
@Html.Partial("ViewData", @Model);
</div>