Javascript在Windows 7下的IE8中不起作用 [英] Javascript doesn't work in IE8 under Windows 7

查看:88
本文介绍了Javascript在Windows 7下的IE8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在Windows 7上使用javascript执行IE8时遇到了奇怪的问题。我还阅读了论坛上的主题,并寻找互联网的解决方案,但没有任何帮助。 

I have strange issue with IE8 on Windows 7 with javascript executing. I also read topics on the forums and looked for Internet for the solution, but nothing helped. 

我有简单的javascript,完全适用于Chrome,Firefox,IE8 @WindowsXP,但是Windows 7上的IE8似乎在加载页面后脚本甚至没有开始执行。 

I have simple javascript that perfectly works in Chrome, Firefox, IE8@WindowsXP, but in IE8 on Windows 7 it seems the script is not even started executing after page is loaded. 

我还执行了(作为管理员):'regsvr32 jscript.dll'。这没有用。我检查了安全设置并将它们设置为最低级别,并启用了我发现的与JavaScript相关的所有内容。它没有帮助。

I also performed (as admin): 'regsvr32 jscript.dll'. This doesn't help. I checked security settings and set them to lowest level and enable everything I found regarding to JavaScript. It didn't help.

但是!只需打开"工具 - >开发工具"窗口即可立即关闭(只需打开和关闭),脚本就可以正常运行了!

BUT! It's enough to open window 'Tools->Develoer Tools' and close it immediately (just open and close) and script starts working properly!

提前完成任务,非常感谢任何帮助。

Thanx in advance, any help is really appreciated.

推荐答案

使用

function consoleLog(msg){

function consoleLog(msg){

if(window.console){console.log(msg);}

if(window.console){console.log(msg);}

}

i / o

console.log(msg)

console.log(msg)

在你的脚本中......

in your scripts...

当在这个论坛中询问关于html,css和脚本的问题时,如果你提供一个链接到你的网站是有帮助的,这样我们就不必做出疯狂的猜测。

when asking a question in this forum about html, css and scripting it is helpful if you provide a link to your website so that we don't have to make wild guesses.


这篇关于Javascript在Windows 7下的IE8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆