Firefox中的“let”关键字不能正常工作 [英] 'let' Keyword in Firefox 43.0.2 not working

查看:350
本文介绍了Firefox中的“let”关键字不能正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到Firefox的let关键字现在正在工作,而且不再需要在脚本标签中指定版本。然而,尽管添加了严格的模式,但我仍然收到Firefox错误:

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:

我尝试过使用块脚本标签中的版本,并且似乎没有任何工作。关于什么可能导致Firefox中let关键字持续出现错误的任何想法?还是什么我可以消除的原因? Thanx !!!

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 现在作为临时解决方法。

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

这篇关于Firefox中的“let”关键字不能正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆