2017-07-07 41 views
-3

我正在開發一個knockoutjs項目。這是共享點,並在鉻中,每件事情都很好。 所以我試圖在Internet Explorer中打開該網站,它看起來像每件事情都可以,但如果我嘗試重新加載,它會加載一個空白頁面,只是顯示頁腳。 我認爲它看起來像組件不會加載,但控制檯沒有提供任何錯誤。IE中的挖空加載問題

我真的希望有人能幫助... 感謝 索菲亞

+2

我們怎麼可能幫忙?你根本沒有給我們任何工作。沒有代碼,沒有圖片,沒有錯誤信息。看看你的帖子。如果你是我,你能幫助你嗎? – gforce301

+1

走出一個肢體,你嘗試過使用'data-bind =「組件:blah」'而不是自定義元素嗎? [見這裏](http://knockoutjs.com/documentation/component-custom-elements.html#note-custom-elements-and-internet-explorer-6-to-8) –

+1

@JohnPavek可能是正確的。自定義元素的使用可能是舊IE失敗的原因。這裏有關於組件和IE的更多信息 - http://knockoutjs.com/documentation/component-custom-elements.html#note-custom-elements-and-internet-explorer-6-to-8 –

回答

0

我能找到的錯誤:) 我的錯是,我曾在報頭中的腳本標記

<head> 
<meta charset="UTF-8" /> 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> 
<title>Knockout-project</title> 
<meta name="description" content="Start-Seite" /> 
<link rel="shortcut icon" href="img/favicon.png"> 
<!-- build:css --> 
<link href="css/styles.css" rel="stylesheet"> 
<!-- endbuild --> 
<!-- build:js --> 
<script src="app/require.config.js"></script> 
<script data-main="app/startup" src="../node_modules/requirejs/require.js"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.debug.js"></script> 
<!-- endbuild --></head> 

但他們必須在頁腳標籤之後...

<footer></footer> 

<!-- build:js --> 
<script src="app/require.config.js"></script> 
<script data-main="app/startup" src="../node_modules/requirejs/require.js"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.debug.js"></script> 
<!-- endbuild --></body>