Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4734566
  • 博文数量: 206
  • 博客积分: 5240
  • 博客等级: 大校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-12 21:40
文章分类

全部博文(206)

文章存档

2013年(13)

2012年(8)

2011年(33)

2010年(152)

我的朋友

分类: 嵌入式

2011-03-05 20:43:43

import web.json;
io.open();
str = /*
{"State":false,"Message":"\u975e\u6cd5\u6570\u636e\u683c\u5f0f,\u8bf7\u8054\u7cfb115\u7f51\u76d8\u5ba2\u670d.code=3","Code":113}
*/;
var re = web.json.decode(str);
io.print(re["Code"]);

显示123

这个是标准的 JSON 格式,你调用 decode 方法,传入这个字符串,就可以返回 table
阅读(1501) | 评论(0) | 转发(0) |
0

上一篇:web库函数

下一篇:从表格删除行

给主人留下些什么吧!~~