Internet Explorer 11 中的 VBScript 支持 [英] VBScript support in Internet Explorer 11

查看:54
本文介绍了Internet Explorer 11 中的 VBScript 支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用两个脚本尝试了以下 HTML 页面:

I tried the following HTML page with two scripts:

<html>
  …
  <body>
    <script type="text/javascript">
      alert ('Javascript');
    </script>
    <script type="text/vbscript">
      msgbox "Vbscript"
    </script>
  </body>
</html>

在 Windows 8.1 预览版 + Internet Explorer 11 上,JavaScript 有效,而 VBScript 无效.

On Windows 8.1 preview + Internet Explorer 11, the JavaScript worked, the VBScript did not.

在(Windows 8 + IE10)、(Windows 7 + IE9)上,这两个脚本都可以运行.

On (Windows 8 + IE10), (Windows 7 + IE9), the two scripts worked.

我没有找到有关 Internet Explorer 11 中 VBScript 支持终止的任何信息,是吗?

I did not find any information about the end of VBScript support in Internet Explorer 11, did you?

推荐答案

IE 团队多年来一直试图淘汰 VBScript.

The IE team has been trying to retire VBScript for years.

http://msdn.microsoft.com/en-us/library/windows/apps/Hh700404.aspx 表示已从 ExecScript API 中删除支持.http://msdn.microsoft.com/en-us/library/ie/dn384057(v=vs.85).aspx 解释说它已从 Internet 区域的 IE11 边缘模式中删除.

http://msdn.microsoft.com/en-us/library/windows/apps/Hh700404.aspx indicates that support was removed from the ExecScript API. http://msdn.microsoft.com/en-us/library/ie/dn384057(v=vs.85).aspx explains that it's removed from IE11 Edge mode in the Internet Zone.

如果您将以下内容添加到 HEAD 标记中,您的 VBScript 将运行:

If you add the following to your HEAD tag, your VBScript will run:

<meta http-equiv="x-ua-compatible" content="IE=10">

这篇关于Internet Explorer 11 中的 VBScript 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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