Support of different Javascript versions in browsers

大憨熊 提交于 2019-12-21 07:00:10

问题


Surfing the MDC docs here, I've noticed there are quite a few versions of javascript (1.6 to 1.8.5).

I was wondering:

  1. Is there any online reference for Browser / Javascript version supported ?

  2. Is there any practical application for the use of different javascript versions ? According to MDC you need to do something like this to use them:

<script type="application/javascript;version=1.7"/>

Which I haven't seen in any website IIRC.

Thanks!


回答1:


1) Yes, on Wikipedia is a nice list: http://en.wikipedia.org/wiki/JavaScript#Version_history

2) For websites it's not a good idea to use newer versions of Javascript, but for plugins for newer browsers it can be helpful. For example, I'm using the forEach function in plugins for Google Chrome




回答2:


  1. Wikipedia has a pretty good chart of browser/versions, check it out here.
    • Note: JavaScript isn't the only ECMAScript implementation, and JavaScript (the standard maintained by Mozilla) and JavaScript the language (more general, sometimes inaccurately used, term) are not the same thing, for example IE's implementation is called JScript.
  2. Not that I've ever seen in anything practical/widespread...you'd have to be doing something pretty specific/specialized for it to have any merit, imo.


来源:https://stackoverflow.com/questions/4063953/support-of-different-javascript-versions-in-browsers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!