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 ... –