問(wèn)題描述
我看到的用于識(shí)別 JavaScript 版本的黑客攻擊都是針對(duì)瀏覽器量身定制的,而不是針對(duì)運(yùn)行 JavaScript 的 ASP Classic 服務(wù)器.
The hacks I've seen for identifying a JavaScript version are all tailored to the browser, not an ASP Classic server running JavaScript.
(不,我沒(méi)有選擇運(yùn)行 ASP Classic/JavaScript.)
(And no, I'm not running ASP Classic/JavaScript by choice.)
推薦答案
免責(zé)聲明:我是微軟 JavaScript 團(tuán)隊(duì)(特別是 Chakra)的工程師.
Disclaimer: I'm an engineer on Microsoft's JavaScript team (specifically, Chakra).
經(jīng)典 ASP"使用的 IActiveScript
JavaScript 引擎也被 Windows 腳本宿主(cscript
和 wscript
)使用,并且還被被 IE 使用了一段時(shí)間(IE9 及更高版本,當(dāng)然不會(huì)).
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).
無(wú)論如何,JScript 引擎通常與 ECMAScript 3.0 規(guī)范一致,并帶有一些專有擴(kuò)展(例如 ActiveXObject
).該規(guī)范可在此處獲得:http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf - 本規(guī)范寫于 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.
自 Windows 2000 以來(lái),此版本的 JScript 沒(méi)有太多更新(即沒(méi)有添加新功能,唯一的更改是為了安全起見(jiàn)).
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 中引入的功能,例如嚴(yán)格模式或 Array.isArray
.
As such, it does not include features introduced in ECMAScript 5, like strict mode, or Array.isArray
.
這篇關(guān)于ASP Classic 使用什么版本的 JavaScript?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!