Detect version of JavaScript

前端 未结 4 1443
终归单人心
终归单人心 2020-11-29 02:35

How can I detect what version of JavaScript the browser supports (if any)? I want to check for ECMAScript 3 versus ECMAScript 5 versus ECMAScript 6.

Note: I want to

4条回答
  •  借酒劲吻你
    2020-11-29 03:12

    Here is a good reference for you: http://www.docsteve.com/DocSteve/Samples/JS/js_version.html

    Basically, use the deprecated language attribute of the script tag

    
    
    
    
    
    
    
    

提交回复
热议问题