本站首页    管理页面    写新日志    退出


«October 2025»
1234
567891011
12131415161718
19202122232425
262728293031


公告

 


我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:流浪狗
日志总数:44
评论数量:19
留言数量:-2
访问次数:192937
建立时间:2008年3月13日




[struts2学习之路]prototype+json ajax应用
软件技术

流浪狗 发表于 2010/8/18 23:44:34

Using JSON with Ajax Using JSON with Ajax is very straightforward, simply invoke String#evalJSON on the transport’s responseText property:new Ajax.Request('/some_url', {   method:'get',   onSuccess: function(transport){      var json = transport.responseText.evalJSON();    } }); If your data comes from an untrusted source, be sure to sanitize it: new Ajax.Request('/some_url', {   method:'get',   requestHeaders: {Accept: 'application/json'},   onSuccess: function(transport){     var json = transport.responseText.evalJSON(true);   } });


阅读全文(2202) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.016 second(s), page refreshed 144793895 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号