2013-05-29 74 views
5

我在Windows 7上,只是將IE升級到10.它工作正常,除了JavaScript不工作。我知道它已啓用,因爲我可以進入設置並禁用它,然後獲得「無js」輸出。但啓用它後,我什麼也得不到。 JS控制檯沒有錯誤。 Firefox中的相同腳本給了我「你好」。JavaScript不工作在Internet Explorer 10

瀏覽器模式是「10」,文檔模式是「標準」,雖然改變它們不會產生任何不同。這裏是整個頁面:

<!DOCTYPE HTML> 
<html> 
    <body> 
<script type="text/javascript"> 
document.write('hello'); 
</script> 
<noscript>no js</noscript> 
    </body> 
</html> 

在其他網站上類似的結果 - 如果我去使用Disqus留言頁面,我只是得到一個空白。如果JS被禁用,Disqus會返回一條消息說這樣。

謝謝。

+1

試試'regsvr32 jscript.dll'和'regsvr32 jscript9.dll' – SLaks

+0

在Windows8上爲我工作。其他人與Windows7有同樣的問題?在這裏你可以查看:http://jsfiddle.net/jFrPN/ – WooCaSh

+2

@blackbee對客戶說... – WooCaSh

回答

0

我不知道這是否能解決您的問題,但您的標記無效,請通過W3C Validator運行,以解決問題,然後重試。

+0

唯一的錯誤是缺少標題元素, – RobG

+0

我之前通過W3C運行過它 - 它發現的唯一的錯誤是。我修正了這個問題,但它沒有產生任何區別......並且那個單獨的應該不會殺死Javascript,無論如何。 – <span class="text-secondary"> <small> <span></span> </small> </span> </p> </div> </div> </div> </div> </div> </article> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1038284119" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">8<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>我解決了這個問題。 F12 - >禁用 - >腳本(取消選中)</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/17654644">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-07-15 12:47:55</span> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/2192293/">user2192293</a></span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> <!-- comments --> <div class="comments"> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+1</span></div> <div class="col-lg-11"> <p class="commenttext">我有一直在這工作了2個小時,我真的是最愚蠢的人活着...... – <span class="text-secondary"> <small> <a rel="noopener" target="_blank" href="https://stackoverflow.com/users/517721/">Landister</a></span> <span></span> </small> </span> </p> </div> </div> </div> <div itemprop="comment" class="post-comment"> <div class="row"> <div class="col-lg-1"><span class="text-secondary">+0</span></div> <div class="col-lg-11"> <p class="commenttext">什麼可能deactive Javascript檢查這個菜單? – <span class="text-secondary"> <small> <span></span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="clearfix"> </div> <div class="relative-box"> <div class="relative">相關問題</div> <ul class="relative_list"> <li> 1. <a href="http://hk.uwenku.com/question/p-ysipfqwv-r.html" target="_blank" title="WebSockets在Internet Explorer 10中不工作"> WebSockets在Internet Explorer 10中不工作 </a> </li> <li> 2. <a href="http://hk.uwenku.com/question/p-vfnxkwue-bhw.html" target="_blank" title="externalInterface javascript在Internet Explorer 11中不工作"> externalInterface javascript在Internet Explorer 11中不工作 </a> </li> <li> 3. <a href="http://hk.uwenku.com/question/p-maazifta-ht.html" target="_blank" title="Javascript併入jQuery不工作在Internet Explorer"> Javascript併入jQuery不工作在Internet Explorer </a> </li> <li> 4. <a href="http://hk.uwenku.com/question/p-zjxlqtok-cy.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li> 5. <a href="http://hk.uwenku.com/question/p-xaryvqrt-bcz.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li> 6. <a href="http://hk.uwenku.com/question/p-mchfknde-bce.html" target="_blank" title="與Internet Explorer 10"> 與Internet Explorer 10 </a> </li> <li> 7. <a href="http://hk.uwenku.com/question/p-pecuiatc-qv.html" target="_blank" title="Javascript setInterval無法在Internet Explorer中工作"> Javascript setInterval無法在Internet Explorer中工作 </a> </li> <li> 8. <a href="http://hk.uwenku.com/question/p-ppzhodux-bnb.html" target="_blank" title="瀏覽器滾動不在Internet Explorer中工作10"> 瀏覽器滾動不在Internet Explorer中工作10 </a> </li> <li> 9. <a href="http://hk.uwenku.com/question/p-zasgjvpf-em.html" target="_blank" title="-ms-perspective不能在Internet Explorer 10中工作"> -ms-perspective不能在Internet Explorer 10中工作 </a> </li> <li> 10. <a href="http://hk.uwenku.com/question/p-ekmixcyf-qr.html" target="_blank" title="jwplayer在Internet Explorer中不工作"> jwplayer在Internet Explorer中不工作 </a> </li> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4606349252"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <li> 11. <a href="http://hk.uwenku.com/question/p-baulliqu-rv.html" target="_blank" title="scrollLeft在Internet Explorer中不工作"> scrollLeft在Internet Explorer中不工作 </a> </li> <li> 12. <a href="http://hk.uwenku.com/question/p-rqwgxeel-mk.html" target="_blank" title="面具不能在Internet Explorer中工作"> 面具不能在Internet Explorer中工作 </a> </li> <li> 13. <a href="http://hk.uwenku.com/question/p-xhavnelb-h.html" target="_blank" title="FoxPro和Internet Explorer 10"> FoxPro和Internet Explorer 10 </a> </li> <li> 14. <a href="http://hk.uwenku.com/question/p-hfkadacv-bgb.html" target="_blank" title="$ state.go不能在Internet Explorer中工作"> $ state.go不能在Internet Explorer中工作 </a> </li> <li> 15. <a href="http://hk.uwenku.com/question/p-vghkulgo-kd.html" target="_blank" title="與在Internet Explorer 10-11"> 與在Internet Explorer 10-11 </a> </li> <li> 16. <a href="http://hk.uwenku.com/question/p-zxkqngcm-bme.html" target="_blank" title="JavaScript在Internet Explorer 9中不起作用"> JavaScript在Internet Explorer 9中不起作用 </a> </li> <li> 17. <a href="http://hk.uwenku.com/question/p-whywblfv-bde.html" target="_blank" title="Internet Explorer javascript style.height無法正常工作"> Internet Explorer javascript style.height無法正常工作 </a> </li> <li> 18. <a href="http://hk.uwenku.com/question/p-grhekffm-u.html" target="_blank" title="上的Internet Explorer的WebLogic部署8時工作不細10"> 上的Internet Explorer的WebLogic部署8時工作不細10 </a> </li> <li> 19. <a href="http://hk.uwenku.com/question/p-wkhvglhh-uc.html" target="_blank" title="「\ n」不會的ASP裏面工作:按鈕的Internet Explorer 10"> 「\ n」不會的ASP裏面工作:按鈕的Internet Explorer 10 </a> </li> <li> 20. <a href="http://hk.uwenku.com/question/p-zbrhyrsk-ox.html" target="_blank" title="Internet Explorer 10與arcgis javascript庫問題"> Internet Explorer 10與arcgis javascript庫問題 </a> </li> <li> 21. <a href="http://hk.uwenku.com/question/p-bwjuymeb-nn.html" target="_blank" title="表單不能在Internet Explorer中工作"> 表單不能在Internet Explorer中工作 </a> </li> <li> 22. <a href="http://hk.uwenku.com/question/p-fizzqxet-hs.html" target="_blank" title="JQuery的removeCookie不工作在Internet Explorer 7"> JQuery的removeCookie不工作在Internet Explorer 7 </a> </li> <li> 23. <a href="http://hk.uwenku.com/question/p-sktapzkd-hz.html" target="_blank" title="bootstrap不工作在Firefox/Internet Explorer"> bootstrap不工作在Firefox/Internet Explorer </a> </li> <li> 24. <a href="http://hk.uwenku.com/question/p-qmtfnrmu-bas.html" target="_blank" title=".html()不能在Internet Explorer中工作"> .html()不能在Internet Explorer中工作 </a> </li> <li> 25. <a href="http://hk.uwenku.com/question/p-ocfomzcs-bbb.html" target="_blank" title="腳本不能在Internet Explorer中工作"> 腳本不能在Internet Explorer中工作 </a> </li> <li> 26. <a href="http://hk.uwenku.com/question/p-szenmssh-ev.html" target="_blank" title="appendChild在Internet Explorer中不工作"> appendChild在Internet Explorer中不工作 </a> </li> <li> 27. <a href="http://hk.uwenku.com/question/p-peqpfhtv-m.html" target="_blank" title="jQuery不能在Internet Explorer中工作"> jQuery不能在Internet Explorer中工作 </a> </li> <li> 28. <a href="http://hk.uwenku.com/question/p-ezykgcav-pk.html" target="_blank" title="Jquery .get()不能在Internet Explorer中工作"> Jquery .get()不能在Internet Explorer中工作 </a> </li> <li> 29. <a href="http://hk.uwenku.com/question/p-ephggulw-ud.html" target="_blank" title="錨不會在Internet Explorer中工作11"> 錨不會在Internet Explorer中工作11 </a> </li> <li> 30. <a href="http://hk.uwenku.com/question/p-pvvyugip-th.html" target="_blank" title="Jquery Selector不能在Internet Explorer上工作"> Jquery Selector不能在Internet Explorer上工作 </a> </li> </ul> </div> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1575177025"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img.uwenku.com/uwenku/script/side.js?t=1644592048261"></script> <script type="text/javascript" src="http://img.uwenku.com/uwenku/plugin/highlight/highlight.pack.js"></script> <link href="http://img.uwenku.com/uwenku/plugin/highlight/styles/docco.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $('pre').each(function(i, e) { hljs.highlightBlock(e, "<span class='indent'> </span>", false) }); </script> <div class="col-lg-3 col-md-4 col-sm-5"> <div id="rightTop"> <div class="row"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="5415218910" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="row sidebar panel panel-default"> <div class="panel-heading font-bold"> 最新問題 </div> <div class="m-b-sm m-t-sm clearfix"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-rqxqbnet-nq.html" target="_blank" title="大熊貓 - 在同一個數據幀"> 大熊貓 - 在同一個數據幀 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-xplytjbe-mv.html" target="_blank" title="最簡單的方式分發Tensorflow培訓的前提?"> 最簡單的方式分發Tensorflow培訓的前提? </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-qumxhczl-ma.html" target="_blank" title="連接來自外部客戶端進程的kubernetes內作爲碼頭容器運行的點火服務器"> 連接來自外部客戶端進程的kubernetes內作爲碼頭容器運行的點火服務器 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-srhbjjlo-hn.html" target="_blank" title="使用Thymeleaf窗體構建POST請求"> 使用Thymeleaf窗體構建POST請求 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-psgzdntr-cy.html" target="_blank" title="如何通過控制器與MVC發送電子郵件"> 如何通過控制器與MVC發送電子郵件 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-vqbdnxxu-dt.html" target="_blank" title="替換VBA中的多個字符實例"> 替換VBA中的多個字符實例 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-dpipuaue-eo.html" target="_blank" title="node.js作爲服務移動+管理面板與角"> node.js作爲服務移動+管理面板與角 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-rrjogcxg-gg.html" target="_blank" title="平均年齡但不包括某些記錄"> 平均年齡但不包括某些記錄 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-gwigassx-bk.html" target="_blank" title="bash變量名使用變量"> bash變量名使用變量 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-mgegqkdf-cp.html" target="_blank" title="如何從Python字符串中刪除括號內的文本?"> 如何從Python字符串中刪除括號內的文本? </a> </li> </ul> </div> </div> </div> <p class="article-nav-bar"></p> <div class="row sidebar article-nav"> <div class="row box_white visible-sm visible-md visible-lg margin-zero"> <div class="top"> <h3 class="title"><i class="glyphicon glyphicon-th-list"></i> 相關問題</h3> </div> <div class="article-relative-content"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-ysipfqwv-r.html" target="_blank" title="WebSockets在Internet Explorer 10中不工作"> WebSockets在Internet Explorer 10中不工作 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-vfnxkwue-bhw.html" target="_blank" title="externalInterface javascript在Internet Explorer 11中不工作"> externalInterface javascript在Internet Explorer 11中不工作 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-maazifta-ht.html" target="_blank" title="Javascript併入jQuery不工作在Internet Explorer"> Javascript併入jQuery不工作在Internet Explorer </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-zjxlqtok-cy.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-xaryvqrt-bcz.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-mchfknde-bce.html" target="_blank" title="與Internet Explorer 10"> 與Internet Explorer 10 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-pecuiatc-qv.html" target="_blank" title="Javascript setInterval無法在Internet Explorer中工作"> Javascript setInterval無法在Internet Explorer中工作 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-ppzhodux-bnb.html" target="_blank" title="瀏覽器滾動不在Internet Explorer中工作10"> 瀏覽器滾動不在Internet Explorer中工作10 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-zasgjvpf-em.html" target="_blank" title="-ms-perspective不能在Internet Explorer 10中工作"> -ms-perspective不能在Internet Explorer 10中工作 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-ekmixcyf-qr.html" target="_blank" title="jwplayer在Internet Explorer中不工作"> jwplayer在Internet Explorer中不工作 </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div><!-- wrap end--> <!-- footer --> <footer id="footer"> <div class="bg-simple lt"> <div class="container"> <div class="row padder-v m-t"> <div class="col-xs-8"> <ul class="list-inline"> <li><a href="http://hk.uwenku.com/contact">聯系我們</a></li> <li>© 2020 HK.UWENKU.COM</li> <li><a target="_blank" href="https://beian.miit.gov.cn/">沪ICP备13005482号-4</a></li> <li><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1280101193&web_id=1280101193"></script></li> <li><a href="http://www.uwenku.com/" target="_blank" title="优文库">简体中文</a></li> <li><a href="http://hk.uwenku.com/" target="_blank" title="優文庫">繁體中文</a></li> <li><a href="http://ru.uwenku.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.uwenku.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.uwenku.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.uwenku.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.uwenku.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.uwenku.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.uwenku.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.uwenku.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.uwenku.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.uwenku.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.uwenku.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f78a970f17b19a79fc477a3378096f29"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>