Ext.Ajax.request({
url : '../../topicInfo/topicInfoNode.htm',
success : getTopicInfoArray,
method : 'post'
});
function getTopicInfoArray(response, options) {
topicInfo_arr = eval(response.responseText);
Ext.onReady(renderAll);
}
也可以用Ext.util.JSON.decode()方法搞定
url : '../../topicInfo/topicInfoNode.htm',
success : getTopicInfoArray,
method : 'post'
});
function getTopicInfoArray(response, options) {
topicInfo_arr = eval(response.responseText);
Ext.onReady(renderAll);
}
也可以用Ext.util.JSON.decode()方法搞定