现在的位置: 首页 > 综合 > 正文

回调js方法

2013年12月06日 ⁄ 综合 ⁄ 共 371字 ⁄ 字号 评论关闭

//回调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({})

}
});

抱歉!评论已关闭.