有没有办法检测这个引擎的javascript版本?在控制台和浏览器上
例如,我想知道
的一致性/usr/bin/js
/usr/bin/node
/usr/bin/ringo
/usr/bin/rhino
/usr/bin/seed
/usr/bin/gjs
and browsers i currently using, etc
他们是否兼容Javascript 1.8.5,或者他们有哪个版本的javascript
答案 0 :(得分:1)
答案 1 :(得分:1)
尝试使用以下脚本来了解Javascript版本
<script type="text/javascript">
var jsver = 1.0;
</script>
<script language="Javascript1.1">
jsver = 1.1;
</script>
<script language="Javascript1.2">
jsver = 1.2;
</script>
<script language="Javascript1.3">
jsver = 1.3;
</script>
<script language="Javascript1.4">
jsver = 1.4;
</script>
<script language="Javascript1.5">
jsver = 1.5;
</script>
<script language="Javascript1.6">
jsver = 1.6;
</script>
<script language="Javascript1.7">
jsver = 1.7;
</script>
<script language="Javascript1.8">
jsver = 1.8;
</script>
<script language="Javascript1.9">
jsver = 1.9;
</script>
<script type="text/javascript">
alert(jsver);
</script>
检查此jsFiddle http://jsfiddle.net/Ac6CT/
由于
AB