怪癖模式和标准模式JavaScript之间的区别 [英] Difference between quirks mode and standards mode JavaScript

查看:106
本文介绍了怪癖模式和标准模式JavaScript之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE 9中这两种模式的JavaScript有什么不同?如果是,它们是什么? IE9标准文档模式支持 ECMAScript,Fifth Edition features ,所以方法如 forEach 每个 map Array 对象的> defineProperty 都支持。 更多关于

  • IE9标准文档模式支持增强的DOM可编程性。 (可能不是你感兴趣的,但它是这样做的)。 更多关于
  • IE9删除了一些关键的 ECMAScript,第三版规范
  • 怪癖模式支持IE6的JavaScript功能,它类似于IE5和IE6,IE7和IE8的Quirks模式行为。

  • 在IE9 Standards Mode中改变了一些东西,比如不支持 arguments.caller JavaScript Property En umeration Differs 等等。阅读在Windows Internet Explorer 9中更改的功能全部关于此。


  • Are there any differences in the JavaScript of these two modes in IE 9? If yes, what are they?

    解决方案

    1. IE9 standards document mode supports ECMAScript, Fifth Edition features, so the method such as forEach, every, map of Array and defineProperty, keys of Object are support well. more about

    2. IE9 standards document mode supports enhanced DOM programmability. (may not what you're interested in, but it does so). more about

    3. IE9 removes some of the key differences between IE8 JavaScript implementation and the ECMAScript, Third Edition Specification.

    4. Quirks mode supports the JavaScript functionality of IE6, It is similar to the behavior of IE5 and the Quirks mode behavior of IE6, IE7 and IE8.

    5. Something changed in IE9 Standards Mode, such as does not support arguments.caller anymore, JavaScript Property Enumeration Differs, and so on. read Features Changed in Windows Internet Explorer 9 all about this.

    这篇关于怪癖模式和标准模式JavaScript之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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