如何在 sap ui5 的文本字段中添加 onfocus() 功能而不是 liveChange()
How can I add onfocus() functionality in text field in sap ui5 instead of liveChange()
如何在 sap ui5 的文本字段中添加 onfocus() 功能而不是 liveChange(),我们尝试使用 onfocusin(),它不起作用,请建议更多功能。
使用attachBrowserEvent
方法:
oYourTextControl.attachBrowserEvent("onfocus", function(oEvent) {
// do whatever
});
https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.core.Control.html#attachBrowserEvent
如何在 sap ui5 的文本字段中添加 onfocus() 功能而不是 liveChange(),我们尝试使用 onfocusin(),它不起作用,请建议更多功能。
使用attachBrowserEvent
方法:
oYourTextControl.attachBrowserEvent("onfocus", function(oEvent) {
// do whatever
});
https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.core.Control.html#attachBrowserEvent