锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲亚洲人成综合网络,亚洲日本韩国在线,亚洲成a人片在线观看久 http://m.tkk7.com/algz/category/38532.htmlPurple Butterfly Flying
QQ緹?7101519
Flex,Ext,Spring,Hibernate,EOS,SpringSecurity,Struts
http://algz.googlecode.com/svn/trunk/ zh-cn Fri, 24 Feb 2012 01:57:00 GMT Fri, 24 Feb 2012 01:57:00 GMT 60 [杞琞 JSON-lib妗嗘灦錛岃漿鎹SON銆乆ML涓嶅啀鍥伴毦 http://m.tkk7.com/algz/articles/370571.html绱澏鈭忛鎻氣啑 绱澏鈭忛鎻氣啑 Thu, 23 Feb 2012 02:56:00 GMT http://m.tkk7.com/algz/articles/370571.html http://m.tkk7.com/algz/comments/370571.html http://m.tkk7.com/algz/articles/370571.html#Feedback 0 http://m.tkk7.com/algz/comments/commentRss/370571.html http://m.tkk7.com/algz/services/trackbacks/370571.html 闃呰鍏ㄦ枃 ]]> EXTJS 涓帴鏀跺埌鐨?JSON 瀛楃涓茶漿鎹㈡垚 JS 鏁扮粍瀵硅薄,鍏蜂綋鍙互璺熻釜鏌ヨ http://m.tkk7.com/algz/articles/228107.html绱澏鈭忛鎻氣啑 绱澏鈭忛鎻氣啑 Wed, 10 Sep 2008 03:53:00 GMT http://m.tkk7.com/algz/articles/228107.html http://m.tkk7.com/algz/comments/228107.html http://m.tkk7.com/algz/articles/228107.html#Feedback 0 http://m.tkk7.com/algz/comments/commentRss/228107.html http://m.tkk7.com/algz/services/trackbacks/228107.html
load : ( Object This, Object node, Object response )
Fires when the node has been successfuly loaded.
JS:
//[{"identity":"","title":"杞﹁韓閮ㄩ棬","date":"","uiProvider":"col","author":"","children ":[{"identity":"杞﹁韓閮ㄩ棬"......
treeload.on('load', function(This, node, response) { //浜嬩歡鐨勫弬鏁板彲鏌PI, 鍙傛暟鐨勫睘鎬у彲浠ョ敤 firebug 璺熻釜鏌ヨ.
var t = Ext.util.JSON.decode(response.responseText);
var n;
if (t[0].children .length == 0) //娉? length涓嶆槸JSON瀵硅薄,浠呬粎鏄疛S瀵硅薄鍐呯疆鏁扮粍灞炴?JS瀵硅薄璋冪敤: t[0].children
n = n + 1;
]]> JSF/JSP 涓?EXTJS 涔嬮棿 JSON 浜掍紶鏁版嵁(json-lib 鍜?org.json 瑙f瀽宸ュ叿) http://m.tkk7.com/algz/articles/203548.html绱澏鈭忛鎻氣啑 绱澏鈭忛鎻氣啑 Wed, 28 May 2008 08:16:00 GMT http://m.tkk7.com/algz/articles/203548.html http://m.tkk7.com/algz/comments/203548.html http://m.tkk7.com/algz/articles/203548.html#Feedback 4 http://m.tkk7.com/algz/comments/commentRss/203548.html http://m.tkk7.com/algz/services/trackbacks/203548.html 涓.org.json 瑙f瀽鍣?(鎺ㄨ崘浣跨敤,鏇撮傚悎浜庡璞℃ā鍨?
姒傝堪鍙婁緥瀛? http://code.google.com/p/json-simple/
API: http://code.google.com/p/json-simple/
渚?嫻嬭瘯閫氳繃,娉ㄦ剰寤惰繜鍔犺澆闂):
JSONArray jsona=new JSONArray();
JSONObject jsono=new JSONObject();
List<Author> l=authorDAO.findAll();
for(Author a:l){
jsono.put("author_num", a.getAuthorNam());
jsono.put("author_nam", a.getAuthorNum());
jsono.put("author_sex", a.getAuthorSex());
jsono.put("author_level", a.getLevel().getLevelNam());
jsono.put("author_department", a.getAuthorDepartment());
jsona.add(jsono.clone()); //jsono.clone()榪斿洖瀹炰緥瀵硅薄;jsono浠呬粎鍙槸涓寚閽?br />
jsono.clear(); //蹇呴』娓呴櫎鍐呭浠ュ涓嬫璋冪敤.
}
浜?json-lib 瑙f瀽鍣?br />
(1)鎵闇渚濊禆鐨勭被鏂囦歡
Json-lib requires (at least) the following dependencies in your classpath:
jakarta commons-lang 2.3 //appach緗戠珯涓嬭澆鏈鏂扮殑
jakarta commons-beanutils 1.7.0 //appach緗戠珯涓嬭澆鏈鏂扮殑
jakarta commons-collections 3.2 //appach緗戠珯涓嬭澆鏈鏂扮殑
jakarta commons-logging 1.1 //appach緗戠珯涓嬭澆鏈鏂扮殑
ezmorph 1.0.4
璇﹁: http://json-lib.sourceforge.net/
(2)涓嬭澆JSON-LIB-2.2.1,騫舵煡鎵?ezmorph 1.0.4 鏂囦歡
https://sourceforge.net/project/showfiles.php?group_id=171425
(3)涓句緥:
1 import net.sf.json.JSONArray;
2
3
4
5 boolean [] boolArray = new boolean [] { true , false , true } ;
6 JSONArray jsonArray1 = JSONArray.fromObject( boolArray );
7 System.out.println( jsonArray1 );
8 // prints [true,false,true]
9
10 List list = new ArrayList();
11 list.add( " first " );
12 list.add( " second " );
13 JSONArray jsonArray2 = JSONArray.fromObject( list );
14 System.out.println( jsonArray2 );
15 // prints ["first","second"]
16
17 JSONArray jsonArray3 = JSONArray.fromObject( " ['json','is','easy'] " );
18 System.out.println( jsonArray3 );
19 // prints ["json","is","easy"]
]]>
主站蜘蛛池模板:
亚洲精品美女久久久久 |
亚洲精品一级无码鲁丝片 |
亚洲日本一区二区 |
成人片黄网站色大片免费观看APP |
国产成人亚洲精品91专区手机 |
黄色免费网址在线观看 |
亚洲?v女人的天堂在线观看 |
白白色免费在线视频 |
亚洲国产成人a精品不卡在线 |
深夜久久AAAAA级毛片免费看 |
亚洲毛片av日韩av无码 |
a毛片在线免费观看 |
久久亚洲精品国产精品黑人 |
免费在线观看a级毛片 |
鲁啊鲁在线视频免费播放 |
免费A级毛片无码A∨男男 |
精品国产免费人成网站 |
亚洲AV日韩AV永久无码下载 |
亚洲一区在线免费观看 |
亚洲综合在线一区二区三区 |
四虎影视在线永久免费观看 |
久久久久久久国产免费看 |
亚洲小视频在线观看 |
色窝窝免费一区二区三区 |
黄色网页免费观看 |
亚洲AV一宅男色影视 |
四虎永久在线精品免费网址 |
免费国产在线精品一区 |
亚洲毛片在线观看 |
情侣视频精品免费的国产 |
黄桃AV无码免费一区二区三区 |
亚洲视频国产精品 |
免费女人18毛片a级毛片视频 |
免费无码又爽又刺激高潮软件 |
亚洲日本在线免费观看 |
免费国产成人高清在线观看麻豆
|
激情综合亚洲色婷婷五月 |
四虎影视免费永久在线观看 |
波多野结衣免费一区视频 |
香蕉大伊亚洲人在线观看 |
亚洲国产小视频精品久久久三级
|