Constructor sap.ui.core.ComponentContainer has been called without new operator

简介: 我的 SAP UI5 应用启动后,在 Chrome 开发者工具遇到如下错误消息:Constructor sap.ui.core.ComponentContainer has been called without “new” operator! -

我的 SAP UI5 应用启动后,在 Chrome 开发者工具遇到如下错误消息:


Constructor sap.ui.core.ComponentContainer has been called without “new” operator! -

image.png


sap.ui.getCore().attachInit(function(){    sap.ui.core.ComponentContainer({  name:"jerrylist"}).placeAt("content");
});


image.png


加上 new 之后问题消失:

image.png


image.png

相关文章
Constructor sap.ui.core.ComponentContainer has been called without new operator
Constructor sap.ui.core.ComponentContainer has been called without new operator
Constructor sap.ui.core.ComponentContainer has been called without new operator
|
Web App开发 开发者
Constructor sap.ui.core.ComponentContainer has been called without new operator
Constructor sap.ui.core.ComponentContainer has been called without new operator
Constructor sap.ui.core.ComponentContainer has been called without new operator
new sap.ui.core.Item() - how is it initialized
Created by Wang, Jerry, last modified on Feb 12, 2015
100 0
new sap.ui.core.Item() - how is it initialized
new sap.ui.core.Item() - how is it initialized
Created by Wang, Jerry, last modified on Feb 12, 2015
105 0
new sap.ui.core.Item() - how is it initialized
|
1月前
|
前端开发 搜索推荐 开发者
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
SAP UI5 sap.m.Column 控件的 minScreenWidth 属性介绍
27 0
|
1月前
|
JavaScript 前端开发 开发者
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
SAP UI5 控件 sap.m.ListBase 的 inset 属性的作用介绍
13 0
|
1月前
|
前端开发 JavaScript API
SAP UI5 sap.ui.require.toUrl 的作用介绍
SAP UI5 sap.ui.require.toUrl 的作用介绍
28 0
|
1月前
|
JSON 前端开发 测试技术
SAP UI5 sap.ui.core.util.MockServer.simulate 方法介绍
SAP UI5 sap.ui.core.util.MockServer.simulate 方法介绍
21 0
|
1月前
使用 SAP UI5 Event Bus 机制,修复 SAP UI5 分页显示数据的一个 bug 试读版
使用 SAP UI5 Event Bus 机制,修复 SAP UI5 分页显示数据的一个 bug 试读版
20 0
|
3月前
|
缓存 JavaScript 前端开发
如何理解 SAP UI5 的 sap.ui.define 函数?
如何理解 SAP UI5 的 sap.ui.define 函数?
45 0

热门文章

最新文章