如果我this.getView()在视图的控制器内部使用,我可以毫无问题地检索它。
this.getView()
如果我在控制器之外(例如在另一个视图的控制器中),如何检索视图?
我尝试sap.ui.core.Core().byId("<name of view>")但它返回undefined。
sap.ui.core.Core().byId("<name of view>")
undefined
sapui5
sapui5 ×1