使用Ext.decode()解析JSON字符串时firebug提示extjs missing ] after element list错误

来源:互联网 发布:js统计人数 编辑:程序博客网 时间:2024/05/20 02:28

使用Ext.decode()解析JSON字符串时firebug提示extjs missing ] after element list的错误,我的代码如下:

注意我在执行Ext.util.JSON.decode(response);时调用了错误的参数,

response是返回的The XMLHttpRequest object containing the response data.而不是字符串类型,

改成var responseJson = Ext.util.JSON.decode(response.responseText);就对了


原创粉丝点击