`
JavaFans
  • 浏览: 87561 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Automation Server can't create Object

阅读更多
var wshShell = new ActiveXObject("Wscript.Shell");

会报错,说:Automation Server can't create Object。

这个是因为IE的安全级别设置问题,修改可以解决:
选择:Internet Explorer , Tools, Internet options, Security, custom level,
选中: enable "Initializing and Script Activex controls not marked as safe"
通过降低安全级别来正确运行。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics