extjs 增加一个按钮,跳转到另外一个js页面

2025-05-10 22:51:14
推荐回答(1个)
回答1:

Ext.create('Ext.Button', {
renderTo:Ext.getBody(),
text : 'CLICK ME',
listeners : {
click : function() {
window.location=url;
}
}
});