Javascript OpenUI5:TypeError:this.getAutoPrefixId不是函数
我正在OpenUI5+NodeJS上编写一个小应用程序。调用Javascript OpenUI5:TypeError:this.getAutoPrefixId不是函数,javascript,sapui5,Javascript,Sapui5,我正在OpenUI5+NodeJS上编写一个小应用程序。调用index.html时,浏览器控制台中出现以下错误:TypeError:this.getAutoPrefixId不是函数。stacktrace的顶部如下所示: init sap-ui-core.js line 175 init Component.js:19 constructor ManagedObject-dbg.js:444 constructor ManagedObject-dbg.js:463 construc
index.html
时,浏览器控制台中出现以下错误:TypeError:this.getAutoPrefixId不是函数
。stacktrace的顶部如下所示:
init sap-ui-core.js line 175
init Component.js:19
constructor ManagedObject-dbg.js:444
constructor ManagedObject-dbg.js:463
constructor Component-dbg.js:244
行init Component.js:19
来自我的Component.js
:UIComponent.prototype.init.apply(这是参数)代码>
请帮忙
关于Lev.问题是init
函数是这样声明的:init=>(){}
。在将它转换为一个常规函数(我的意思是init:function(){}
)之后,一切都变好了