并ASP经典使用哪个版本的JavaScript

并ASP经典使用哪个版本的JavaScript

本文介绍了并ASP经典使用哪个版本的JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过识别JavaScript版本的黑客都是量身定做的浏览器,而不是一个ASP经典服务器运行的JavaScript。

The hacks I've seen for identifying a JavaScript version are all tailored to the browser, not an ASP Classic server running JavaScript.

(不,我没有选择的余地运行ASP经典/ JavaScript的。)

(And no, I'm not running ASP Classic/JavaScript by choice.)

推荐答案

免责声明:我在微软的JavaScript团队(具体轮)工程师

Disclaimer: I'm an engineer on Microsoft's JavaScript team (specifically, Chakra).

由传统的ASP中使用的 IActiveScript JavaScript引擎也使用Windows脚本宿主( CSCRIPT W脚本),并也使用了IE一段时间(IE9及更高版本,肯定不会)。

The IActiveScript JavaScript engine used by "Classic ASP" is also used by the Windows Script Host (cscript and wscript) and was also used by IE for a while (IE9 and later, certainly does not).

总之,JScript引擎通常与ECMAScript 3.0规范的一些专有扩展(如的ActiveXObject )一致。该规范可在这里:http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf - 这说明写于1999年。

Anyway, the JScript engine generally coincides with the ECMAScript 3.0 specification with some proprietary extensions (such as ActiveXObject). The specification is available here: http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf - this specification was written in 1999.

这JScript的版本的Windows 2000以后的日子尚未更新多少(即已添加任何新功能,唯一的变化是出于安全的利益)。

This version of JScript has not been updated much since the days of Windows 2000 (i.e. no new features have been added, the only changes have been for the benefit of security).

因此​​,它不包括在ECMAScript中5引入的功能,如严格模式,或 Array.isArray

As such, it does not include features introduced in ECMAScript 5, like strict mode, or Array.isArray.

这篇关于并ASP经典使用哪个版本的JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 06:21