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