[英]How to tell what version of javascript chrome dev tools is running?
You would say, "Well it's running the according version to the version of Chrome you're running of course!", but is there a way to see/set what version of javascript you're working with in Chrome Dev Tools? 您会说,“当然,它正在运行您正在运行的Chrome版本的相应版本!”,但有没有办法查看/设置您在Chrome开发工具中使用的javascript版本?
I ask becuase I was trying to follow along with MDN's const
example but const
wasn't working as expected in the Chrome Dev Tools Console. 我问,因为我试图跟随MDN的
const
示例,但const
在Chrome Dev Tools控制台中没有按预期工作。
I'm on Chrome Version 49.0.2623.108 m and have some experimental settings checked. 我使用的是Chrome版本49.0.2623.108 m,并检查了一些实验设置。
Me trying to use const
in the Chrome Dev Tools Console: 我试图在Chrome开发工具控制台中使用
const
:
const MY_FAV = 7;
undefined
MY_FAV
VM202:2 Uncaught ReferenceError: MY_FAV is not defined(…)(anonymous function) @ VM202:2InjectedScript._evaluateOn @ VM134:878InjectedScript._evaluateAndWrap @ VM134:811InjectedScript.evaluate @ VM134:667
MY_FAV = 20;
20
MY_FAV
20
I was writing other ES6 things in the console earlier today like ...args
so not sure why const
is acting like this right now. 我今天早些时候在控制台中编写了其他ES6的东西,比如
...args
所以不确定为什么const
现在就像这样。
is there a way to see/set what version of javascript you're working with in Chrome Dev Tools?
有没有办法查看/设置您在Chrome开发工具中使用的javascript版本?
Whatever your browser's engine is implementing, really. 无论你的浏览器引擎是什么实现的,真的。
The best you can see is probably the name and version of your browser's JavaScript engine at chrome://version/
, which you can then cross-reference with the issue tracker, filtered by version label . 您可以看到的最好的可能是
chrome://version/
浏览器的JavaScript引擎的名称和版本chrome://version/
,然后您可以与问题跟踪器交叉引用,按版本标签进行过滤 。
If you're asking whether certain features are implemented, you're probably best off looking at compatibility tables or searching for the specific features in the issue tracker or other databases . 如果您询问是否实现了某些功能,那么您最好查看兼容性表或在问题跟踪器或其他数据库中搜索特定功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.