0
我将我的mvc1项目迁移到mvc2。mvc2迁移问题
我的jQuery json结果函数不起作用了。有什么想法?
ASPX
$.getJSON('Customer/GetWarningList/0', function(jsonResult) {
$.each(jsonResult, function(i, val) {
$('#LastUpdates').prepend(jsonResult[i].Url);
});
});
控制器
public JsonResult GetWarningList(string id)
{
List<WarningList> OldBck = new List<WarningList>();
return this.Json(OldBck);
}
您是否遇到异常?你在Firebug/Fiddler看到什么?更多信息plz ... –