|
版本: |
BeX5V3.5 |
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 其它 |
浏览器: |
Chrome |
|
|
数据json格式:
{"rows":[{"id":"1","name":"\u5929\u6c14","imgs":[{"img_id":"1","path":"http:\/\/www.a.com\/01.jpg"},{"img_id":"2","path":"http:\/\/www.a.com\/02.jpg"}],"comments":[{"comment_id":"2","username":"\u5927\u997c\u597d\u5403","content":"\u6211\u4eec\u8fd9\u91cc\u4e5f\u4e0b\u96e8\u4e86"},{"comment_id":"5","username":"\u773c\u775b\u5168\u5728\u770b","content":"\u767d\u7d20\u8d1e\u6765\u627e\u8bb8\u4ed9\u4e86\u4e48"}]},{"id":"1","name":"\u81ea\u7136","imgs":[{"img_id":"4","path":"http:\/\/www.a.com\/04.jpg"},{"img_id":"6","path":"http:\/\/www.a.com\/06.jpg"}],"comments":[{"comment_id":"8","username":"\u591a\u591a\u7684\u4e16\u754c","content":"\u8fd9\u5730\u65b9\u6211\u60f3\u53bb\u5f88\u4e45\u4e86"},{"comment_id":"11","username":"\u6211\u7684\u7f8e\u4e0d\u80dc\u6536","content":"\u6211\u7684\u5bb6\u4e61\uff0c\u6211\u9a84\u50b2"}]}]}
数据视图格式:
- {
- "rows": [
- {
- "id": "1",
- "name": "天气",
- "imgs": [
- {
- "img_id": "1",
- "path": "http://www.a.com/01.jpg"
- },
- {
- "img_id": "2",
- "path": "http://www.a.com/02.jpg"
- }
- ],
- "comments": [
- {
- "comment_id": "2",
- "username": "大饼好吃",
- "content": "我们这里也下雨了"
- },
- {
- "comment_id": "5",
- "username": "眼睛全在看",
- "content": "白素贞来找许仙了么"
- }
- ]
- },
- {
- "id": "1",
- "name": "自然",
- "imgs": [
- {
- "img_id": "4",
- "path": "http://www.a.com/04.jpg"
- },
- {
- "img_id": "6",
- "path": "http://www.a.com/06.jpg"
- }
- ],
- "comments": [
- {
- "comment_id": "8",
- "username": "多多的世界",
- "content": "这地方我想去很久了"
- },
- {
- "comment_id": "11",
- "username": "我的美不胜收",
- "content": "我的家乡,我骄傲"
- }
- ]
- }
- ]
- }
复制代码
这样格式的数据怎么写法呢?谁能给我个例子或者思路
|
|