我使用一個jQuery調用集合 想這是我收集如何解析jQuery中的System.Collections.Generic.List?
PageBL pageBL = new PageBL();
List<Page> pageList = pageBL.GetCategoryPageList(categoryID);
return pageList;
我得到這個列表中的jQuery,
$.get("/Home/GetActionMethod/" + id, { CategoryID: id }, function (data) {
});
現在任何一個可以告訴我,這個數據是如何解析這樣我才能得到所需的結果。
每個Page對象將在一個JavaScript數組。 – 2012-01-05 10:35:37
我假設這是'controller'代碼...什麼是View代碼? – 2012-01-05 10:35:38
@dan_l確定它將被視爲javascript數組,謝謝。 – user1006544 2012-01-05 10:36:50