//回调js方法
Ext.Ajax.request({
url : url,
params : {
id : id
},
success : function(response, options) {
var source = response.responseText;
var headerDom = document.getElementsByTagName('head').item(0);
var jsDom = document.createElement('script');
jsDom.type = 'text/javascript';
jsDom.language = 'javascript';
jsDom.defer = true;
jsDom.text = source;
headerDom.appendChild(jsDom);
//下面是你要添加的方法
new Ext.Panel({})}
});
标签:headerDom,text,js,source,var,jsDom,回调,方法,id
From: https://blog.51cto.com/u_2544485/7395616