後臺Servlet中的List集合轉換成Json數組交給Ajax進行處理

在Ajax中不能直接處理List集合,須要將List集合轉爲Json數組進行處理。html 首先是後臺Servlet部分java List<RoomInfo> Pricels = new ArrayList<RoomInfo>();//RoomInfo是一個javabean對象  RoomInfo roominfo1 = new RoomInfo();//定義Roo
相關文章
相關標籤/搜索