我有简单的形式:
myForm = new Ext.form.FormPanel({
width:'100%',
frame:false,
items: [
new Ext.form.TextArea({
id:'notes',
name: 'notes',
hideLabel: true,
width:350,
height:200
})
],
buttons: [
{
text:"Save",
click: function (b,e) {
alert('x');
}
}
]
});
Run Code Online (Sandbox Code Playgroud)
但是我无法使按钮的单击事件生效.按以下方式创建的按钮是否具有与Ext.Button相同的功能?