2013-05-29 54 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://www.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://www.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://www.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://www.uwenku.com/question/p-zjxlqtok-cy.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li> 5. <a href="http://www.uwenku.com/question/p-xaryvqrt-bcz.html" target="_blank" title="JavaScript不能在Internet Explorer中工作"> JavaScript不能在Internet Explorer中工作 </a> </li> <li> 6. <a href="http://www.uwenku.com/question/p-mchfknde-bce.html" target="_blank" title="与Internet Explorer 10"> 与Internet Explorer 10 </a> </li> <li> 7. <a href="http://www.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://www.uwenku.com/question/p-ppzhodux-bnb.html" target="_blank" title="浏览器滚动不在Internet Explorer中工作10"> 浏览器滚动不在Internet Explorer中工作10 </a> </li> <li> 9. <a href="http://www.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://www.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://www.uwenku.com/question/p-baulliqu-rv.html" target="_blank" title="scrollLeft在Internet Explorer中不工作"> scrollLeft在Internet Explorer中不工作 </a> </li> <li> 12. <a href="http://www.uwenku.com/question/p-rqwgxeel-mk.html" target="_blank" title="面具不能在Internet Explorer中工作"> 面具不能在Internet Explorer中工作 </a> </li> <li> 13. <a href="http://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.uwenku.com/question/p-bwjuymeb-nn.html" target="_blank" title="表单不能在Internet Explorer中工作"> 表单不能在Internet Explorer中工作 </a> </li> <li> 22. <a href="http://www.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://www.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://www.uwenku.com/question/p-qmtfnrmu-bas.html" target="_blank" title=".html()不能在Internet Explorer中工作"> .html()不能在Internet Explorer中工作 </a> </li> <li> 25. <a href="http://www.uwenku.com/question/p-ocfomzcs-bbb.html" target="_blank" title="脚本不能在Internet Explorer中工作"> 脚本不能在Internet Explorer中工作 </a> </li> <li> 26. <a href="http://www.uwenku.com/question/p-szenmssh-ev.html" target="_blank" title="appendChild在Internet Explorer中不工作"> appendChild在Internet Explorer中不工作 </a> </li> <li> 27. <a href="http://www.uwenku.com/question/p-peqpfhtv-m.html" target="_blank" title="jQuery不能在Internet Explorer中工作"> jQuery不能在Internet Explorer中工作 </a> </li> <li> 28. <a href="http://www.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://www.uwenku.com/question/p-ephggulw-ud.html" target="_blank" title="锚不会在Internet Explorer中工作11"> 锚不会在Internet Explorer中工作11 </a> </li> <li> 30. <a href="http://www.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=1644592048176"></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 sidebar panel panel-default"> <div class="panel-heading font-bold"> 每日一句 </div> <div class="panel-body m-b-sm m-t-sm clearfix"> 每一个你不满意的现在,都有一个你没有努力的曾经。 </div> </div> <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://www.uwenku.com/question/p-rqxqbnet-nq.html" target="_blank" title="大熊猫 - 在同一个数据帧"> 大熊猫 - 在同一个数据帧 </a> </li> <li class="side_article_list_item"> 2. <a href="http://www.uwenku.com/question/p-xplytjbe-mv.html" target="_blank" title="最简单的方式分发Tensorflow培训的前提?"> 最简单的方式分发Tensorflow培训的前提? </a> </li> <li class="side_article_list_item"> 3. <a href="http://www.uwenku.com/question/p-qumxhczl-ma.html" target="_blank" title="连接来自外部客户端进程的kubernetes内作为码头容器运行的点火服务器"> 连接来自外部客户端进程的kubernetes内作为码头容器运行的点火服务器 </a> </li> <li class="side_article_list_item"> 4. <a href="http://www.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://www.uwenku.com/question/p-psgzdntr-cy.html" target="_blank" title="如何通过控制器与MVC发送电子邮件"> 如何通过控制器与MVC发送电子邮件 </a> </li> <li class="side_article_list_item"> 6. <a href="http://www.uwenku.com/question/p-vqbdnxxu-dt.html" target="_blank" title="替换VBA中的多个字符实例"> 替换VBA中的多个字符实例 </a> </li> <li class="side_article_list_item"> 7. <a href="http://www.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://www.uwenku.com/question/p-rrjogcxg-gg.html" target="_blank" title="平均年龄但不包括某些记录"> 平均年龄但不包括某些记录 </a> </li> <li class="side_article_list_item"> 9. <a href="http://www.uwenku.com/question/p-gwigassx-bk.html" target="_blank" title="bash变量名使用变量"> bash变量名使用变量 </a> </li> <li class="side_article_list_item"> 10. <a href="http://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.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://www.uwenku.com/contact">联系我们</a></li> <li>© 2020 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>