2011-08-20 48 views
0

我在一個MVC項目中使用Ext。我寫了一個控制器,就像下面的代碼一樣。我如何處理在我的View頁面中使用的JavaScript中的這個JSON reult?如何在JavaScript中處理JSON結果(在MVC上)?

public ActionResult Index() 
    { 
     List<PriceList> newList = new List<PriceList> 
     { 
      new PriceList { Number = 1, Price = 24}, 
      new PriceList { Number = 2, Price = 25}, 
      new PriceList { Number = 3, Price = 20}, 
      new PriceList { Number = 4, Price = 18}, 
     }; 

     return Json(newList); 
    } 
+0

* [在ASP.NET中使用Ext JS](http://stackoverflow.com/questions/205720/using-extjs-in-asp-net)*的可能重複。 –

+0

請參閱:* * [集成Ext JS和ASP.NET MVC](http://geekswithblogs.net/lszk/archive/2009/08/25/integration-extjs-and-asp.net-mvc.aspx)* *堆棧溢出問題* [在ASP.NET中使用Ext JS](http://stackoverflow.com/questions/205720/using-extjs-in-asp-net)* – user571646

回答