Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.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
Sapui5 为什么index.html class=";。。。sapUiMedia标准-??“;_Sapui5 - Fatal编程技术网

Sapui5 为什么index.html class=";。。。sapUiMedia标准-??“;

Sapui5 为什么index.html class=";。。。sapUiMedia标准-??“;,sapui5,Sapui5,my index.html [class="sap-phone sapUiTheme-sap_belize sap-ios sapUiMedia-Std-Tablet sapUiMedia-StdExt-Tablet"] 在iphone中,但演示是 [class="sap-tablet sap-desktop sap-combi sapUiTheme-sap_belize sapUiMedia-Std-Phone sapUiMedia-StdExt-Phone"] 为什么我的“sapUi

my index.html

[class="sap-phone sapUiTheme-sap_belize sap-ios sapUiMedia-Std-Tablet sapUiMedia-StdExt-Tablet"] 
在iphone中,但演示是

[class="sap-tablet  sap-desktop sap-combi sapUiTheme-sap_belize sapUiMedia-Std-Phone sapUiMedia-StdExt-Phone"]
为什么我的“sapUiMedia标准平板电脑”不是“sapUiMedia标准手机”


我找到了一种方法,将sap.m.App添加到index.html,问题就解决了

    sap.ui.getCore().attachInit(function () {
        new sap.m.App({
            pages: new sap.tnt.ToolPage({
                header: new sap.tnt.ToolHeader("", {
                    content: [
                        new sap.m.Button("", {
                            icon: "sap-icon://menu2",
                            type: sap.m.ButtonType.Transparent,
                            layoutData: new sap.m.OverflowToolbarLayoutData(
                                "", {
                                    priority: sap.m.OverflowToolbarPriority
                                        .NeverOverflow
                                }),
                        })
                    ]
                }),
                sideContent: new sap.tnt.SideNavigation("", {
                    item: new sap.tnt.NavigationList()
                })
            })
        }).placeAt("content");
    });

你能把你的问题解释清楚一点吗?如果您想识别ui5如何识别您的应用程序,可以在控制台开发工具sap.ui.Device.system中运行。
    sap.ui.getCore().attachInit(function () {
        new sap.m.App({
            pages: new sap.tnt.ToolPage({
                header: new sap.tnt.ToolHeader("", {
                    content: [
                        new sap.m.Button("", {
                            icon: "sap-icon://menu2",
                            type: sap.m.ButtonType.Transparent,
                            layoutData: new sap.m.OverflowToolbarLayoutData(
                                "", {
                                    priority: sap.m.OverflowToolbarPriority
                                        .NeverOverflow
                                }),
                        })
                    ]
                }),
                sideContent: new sap.tnt.SideNavigation("", {
                    item: new sap.tnt.NavigationList()
                })
            })
        }).placeAt("content");
    });