Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/375.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 无法在Internet Explorer中检索资源_Javascript_Internet Explorer_Sapui5 - Fatal编程技术网

Javascript 无法在Internet Explorer中检索资源

Javascript 无法在Internet Explorer中检索资源,javascript,internet-explorer,sapui5,Javascript,Internet Explorer,Sapui5,我创建了我的OpenUI5应用程序,并在chrome(和firefox)中进行了测试。在这些浏览器上,该应用程序运行良好,但如果我尝试在Internet Explorer上运行它(在我的pc上,我有IE11),我有一个错误 我在此模式下定义我的资源: <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:f="sap.ui.lay

我创建了我的OpenUI5应用程序,并在chrome(和firefox)中进行了测试。在这些浏览器上,该应用程序运行良好,但如果我尝试在Internet Explorer上运行它(在我的pc上,我有IE11),我有一个错误

我在此模式下定义我的资源:

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:f="sap.ui.layout.form"
        controllerName="apps.appIntra.detail.rowDetailEdit" xmlns:html="http://www.w3.org/1999/xhtml">
    <Page id='pageRowDetailEdit' title="Modifica" showNavButton="true" navButtonPress="doBack">
        <content>
        <l:Grid
            defaultSpan="L12 M12 S12"
            hSpacing="2"
            width="auto">
            <l:content>
              <f:Form id="FormEdit"
                minWidth="1024"
                maxContainerCols="2"
                editable="true"
                class="isReadonly">
                <f:title>
                  <core:Title text="Modifica" />
                </f:title>
                <f:layout>
                  <f:ResponsiveGridLayout
                    labelSpanL="3"
                    labelSpanM="3"
                    emptySpanL="4"
                    emptySpanM="4"
                    columnsL="1"
                    columnsM="1" />
                </f:layout>
                 <f:formContainers>
                   <f:FormContainer id="rowDetFormEditContainer">

                  </f:FormContainer> 
                </f:formContainers> 
              </f:Form>
            </l:content>
          </l:Grid>

        </content>

        <footer>
          <Bar>
            <contentRight>
              <Button text="Accetta" press="onPressOnAccept" type="Accept" />
            </contentRight>
          </Bar>
        </footer>



    </Page>
</core:View> 

我找到了问题的原因! 在我视图的控制器中,我使用以下代码:

console.log('Errore. Tabella della società '+sap.ui.getCore().getModel("flagSociety")+' non gestita');
我写的是带有重音的社交网站。
我不喜欢这个角色

你没有虫子。IE有。我如何解决我的问题?我在IE11浏览器上进行了检查,
sap.ui.getCore().byId(“someViewId”)
工作正常,即返回对视图的引用。。。也许你的代码还有别的什么?这能回答你的问题吗?不幸的是,IE根本不喜欢
控制台。在生产代码和IE中测试时,应避免使用console。另一种方法是使用自己的
.log
方法,该方法在使用window.console之前检查window.console是否存在。
console.log('Errore. Tabella della società '+sap.ui.getCore().getModel("flagSociety")+' non gestita');