Sapui5 如何在sap ui5的文本字段中添加onfocus()功能而不是liveChange()功能
如何在sap ui5的文本字段中添加onfocus()功能而不是liveChange(),我们已尝试使用onfocusin(),但它不起作用,建议使用其他功能。使用Sapui5 如何在sap ui5的文本字段中添加onfocus()功能而不是liveChange()功能,sapui5,Sapui5,如何在sap ui5的文本字段中添加onfocus()功能而不是liveChange(),我们已尝试使用onfocusin(),但它不起作用,建议使用其他功能。使用attachBrowserEvent方法: oYourTextControl.attachBrowserEvent("onfocus", function(oEvent) { // do whatever }); 使用onfocusinhandler:扩展控件,特别是当控件被多次使用时(例如,在XMLView定义中作为绑定模
attachBrowserEvent
方法:
oYourTextControl.attachBrowserEvent("onfocus", function(oEvent) {
// do whatever
});
使用
onfocusin
handler:扩展控件,特别是当控件被多次使用时(例如,在XMLView定义中作为绑定模板)