简体   繁体   中英

'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. HOWEVER, despite adding strict mode, I am still getting the Firefox error:

在此处输入图片说明

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? Or anything I may be able to eliminate as a cause? Thanx!!!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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