Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/464.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 每个新的SAPUI5项目都显示一个空白页_Javascript_Sapui5 - Fatal编程技术网

Javascript 每个新的SAPUI5项目都显示一个空白页

Javascript 每个新的SAPUI5项目都显示一个空白页,javascript,sapui5,Javascript,Sapui5,每当我建立一个新的sapui5项目时,我都会发现没有显示任何内容,只有一个空白页 我已经看了控制台,有些东西不见了。我已经改变了index.html的语言,并尝试了互联网上不同的东西。 一旦我有了这个问题,它就会突然自行解决。我还重置了缓存,这对我来说只适用一次。我正在使用本地sap web IDE <!DOCTYPE HTML> <html> <head> <meta http-equiv="X-UA-Compatible"

每当我建立一个新的sapui5项目时,我都会发现没有显示任何内容,只有一个空白页

我已经看了控制台,有些东西不见了。我已经改变了index.html的语言,并尝试了互联网上不同的东西。 一旦我有了这个问题,它就会突然自行解决。我还重置了缓存,这对我来说只适用一次。我正在使用本地sap web IDE

<!DOCTYPE HTML>
<html>

    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta charset="UTF-8">

        <title>test_chart</title>

        <script id="sap-ui-bootstrap"
            src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
            data-sap-ui-libs="sap.m"
            data-sap-ui-theme="sap_belize"
            data-sap-ui-compatVersion="edge"
            data-sap-ui-resourceroots='{"test_charttest_chart": ""}'>
        </script>

        <link rel="stylesheet" type="text/css" href="css/style.css">

        <script>
            sap.ui.getCore().attachInit(function() {
                new sap.m.Shell({
                    app: new sap.ui.core.ComponentContainer({
                        height : "100%",
                        name : "test_charttest_chart"
                    })
                }).placeAt("content");
            });
        </script>
    </head>

    <body class="sapUiBody" id="content">
    </body>

</html>

测试图
sap.ui.getCore().attachInit(函数()){
新sap.m.Shell({
应用程序:新sap.ui.core.ComponentContainer({
高度:“100%”,
名称:“测试图表测试图表”
})
}).placeAt(“内容”);
});

只需添加一个答案(因为问题已经解决)。。问题是该应用程序试图加载仅在SAPUI5中可用但在OpenUI5中不可用的资源(例如
sap.ushell


未能从以下位置加载
sap/ushell/library.js

如果您有使用SAPUI5的适当许可证,只需替换
src=”https://openui5.hana....“
目标为SAPUI5资源(例如,
src=”https://sapui5.hana....“

为了继续使用OpenUI5,请在
index.html
manifest.json
中查找SAPUI5依赖项,并删除它们