'let' Keyword in Firefox 43.0.2 not working

Deadly 提交于 2019-12-24 16:03:44

问题


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!!!


回答1:


According to the ES6 compatibility table, let is not supported in FF 43. You still can use var for now as a temporary workaround.



来源:https://stackoverflow.com/questions/34684892/let-keyword-in-firefox-43-0-2-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!