Javascript Package关键字是做什么用的? [英] What is the Javascript Package keyword used for?

查看:61
本文介绍了Javascript Package关键字是做什么用的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读一些有关保留JavaScript关键字的在线资料,偶然发现了 package 一词.

I was reading some online material on reserved JavaScript keywords and I came across the word package.

我找不到任何清晰的在线材料可以解释它的用处.

I couldn't find any clear online material that could explain what it is useful for.

推荐答案

它是保留的,但不一定使用(嗯,至少不是在撰写本文时).

It is reserved, but not necessarily used (well, not at least of time of writing).

以下内容被ECMAScript规范保留为将来的关键字.它们目前没有特殊功能,但是将来可能会使用,因此不能用作标识符.(请注意,目前Mozilla仅在严格模式代码中保留这些关键字.大多数其他浏览器在所有代码中都保留这些关键字,无论是否严格,因此它们的使用非常不可移植.Mozilla可能会在常规代码中保留这些关键字.在将来的版本中,以符合规范并与其他浏览器保持一致.

The following are reserved as future keywords by the ECMAScript specification. They have no special functionality at present, but they might at some future time, so they cannot be used as identifiers. (Note that for the moment Mozilla reserves these keywords only in strict mode code. Most other browsers reserve these keywords in all code, whether strict or not, so their use is very much non-portable. Mozilla will likely reserve these keywords in normal code in a future release, to conform to the specification and to be consistent with other browsers).

来源.

这篇关于Javascript Package关键字是做什么用的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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