使用Ext.decode()解析JSON字符串时firebug提示extjs missing ] after element list错误
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json

·
使用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);就对了




适用于现代 C++ 的 JSON。
最近提交(Master分支:6 个月前 )
6b919938
* :bug: add missing header
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
* :rotating_light: fix warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
* :rotating_light: fix warning
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
---------
Signed-off-by: Niels Lohmann <mail@nlohmann.me> 10 小时前
51a77f1d
4 天前
更多推荐
所有评论(0)