Abd*_*oof 21
使用按钮的单击事件并将文本更改为"隐藏".
listeners : {
click: function(button,event) {
button.setText('Hide');
}
}
Run Code Online (Sandbox Code Playgroud)
如果您使用mvc,那么您将使用此代码
'widgetName button[text=Show]': {
click: function(button, el) {
button.setText('Hide');
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16351 次 |
| 最近记录: |