Difference Between this.getView().byId(), this.byId(), and sap.ui.getCore().byId()
问题 Can I know the difference and performance when I use var myControl = this.getView().byId("myIDhere"); var myControl = this.byId("myIDhere"); var myControl = sap.ui.getCore().byId("myIDhere"); Which of three is best to use to perform operations on control when I use XML views in UI5 apps? 回答1: this.getView().byId(...) is equivalent to this.byId(...) . Take a look at the source code to see what byId does: // sap.ui.core.mvc.Controller Controller.prototype.byId = function(sId) { return this