简体   繁体   English

如何判断哪个版本的javascript chrome dev工具正在运行?

[英]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.

相关问题 如何在 Chrome Dev Tools 中编辑 Html 中的 Javascript - how to edit Javascript in Html in Chrome Dev Tools Chrome开发工具中的“清除网站数据”等效于什么? - What is the JavaScript equivalent of “Clear Site Data” in Chrome Dev Tools? 如何在 Chrome 开发工具或 Firefox 开发工具中查看哪些 JS 改变了我的元素的样式? - How do I see what JS is changing style to my elements in Chrome dev tools or Firefox dev tools? 如何使用chrome dev工具查看javascript发送的http请求 - How to use chrome dev tools to view http requests sent by javascript 如何在Chrome Dev Tools中为自定义类计算javascript类名? - How are javascript class names calculated for custom classes in Chrome Dev Tools? 如何使用 JavaScript(来自 Dev Tools)在 Chrome 中保存完整页面? - How to save a complete page in Chrome using JavaScript (from Dev Tools)? Chrome开发人员工具javascript版本 - Chrome developer tools javascript version Chrome开发工具中使用了哪些框架和库? - What frameworks and libraries are used in Chrome Dev Tools? 如果 Chrome 开发工具移动版不真实怎么办? - What if Chrome dev tools mobile not real? Chrome 开发工具中的“Ot”是什么意思? - What does `Ot` means in Chrome dev tools?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM