javascript使用window.open提示“已经计划系统关机”的原因


javascript调用window.open打开网站的时候,IE浏览器下报错:已经计划系统关机,提示如图:

查看图片

百度找了下都是莫名其妙的自动好了,可以查看这个帖子:诡异的JS,已经计划系统关机错误。

于是改用谷歌搜索相关英文内容,serverfault.com上也有人碰到过这个问题,满意答案还比较靠谱:IE8 script error 800704a6?

The only information I've been able to find on this error is from Josh Poley's MSDN blog.(这篇msdn上的文章已经不存在)

1190 0x800704A6 A system shutdown has already been scheduled. ERROR_SHUTDOWN_IS_SCHEDULED

However, the message implies that you get this when trying to schedule a shutdown. The only thing I can think of is that an installation/Windows update is waiting for a reboot.

You say that you can't see updates in Add/Remove programs - have you checked the "Show updates" option is checked?

Other posts that mention this error are similar in nature to yours.

主要说的是系统更新或者安装过相关的软件或者补丁,需要重启动后才能生效。所以上面那篇csdn的这个错误也是解决得莫名其妙了,应该是重启过电脑。

javascript中实现兼容JAVA的hashCode算法代码分享
在java中一个hashCode算法,可以用来计算一个字符串的hash值,今天一个朋友突然问俺能不能在js中计算hashCode,要求和java的hashCode计算结果一样。对于java

javascript ajax的5种状态介绍
在《Pragmaticajax(动态网站静态化)AWeb2.0Primer》中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下:0:(Uninitialized)thesend()methodhasnotyetbeeninvoked

js中运算符&& 和 || 的使用记录
这2个运算符经常用到,总是弄混,记录下。。。a()&&b():如果执行a()后返回true,则执行b()并返回b的值;如果执行a()后返回false,则整个表达式返回a()的