简体   繁体   English

Firefox 43.0.2中的“ let”关键字不起作用

[英]'let' Keyword in Firefox 43.0.2 not working

I have read where the 'let' keyword is working now in Firefox, and that the use of specifying the version in the script tag is no longer necessary. 我已经阅读了'let'关键字现在在Firefox中工作的位置,并且不再需要在script标记中指定版本。 HOWEVER, despite adding strict mode, I am still getting the Firefox error: 但是,尽管添加了严格模式,但仍然出现Firefox错误:

在此处输入图片说明

I'd tried block scoping strict mode, using the version in the script tag and nothing seems to be working. 我曾尝试使用脚本标记中的版本对严格作用域进行严格作用域限制,但似乎没有任何效果。 Any ideas on what may cause this persistent error for the 'let' keyword in Firefox? 关于什么可能导致Firefox中的'let'关键字持续出现错误的任何想法? Or anything I may be able to eliminate as a cause? 还是我可以消除的任何原因? Thanx!!! 感谢名单!

根据ES6兼容性表 ,FF 43不支持let 。现在您仍然可以使用var作为临时替代方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM