javascript - 为什么 "$"是一个有效的函数标识符?

标签 javascript grammar

<分区>

Possible Duplicates:
Can someone explain the dollar sign in Javascript?
Why would a javascript variable start with a dollar sign?

为什么我可以在 Javascript 中将函数分配给 $ 而不是 #^

最佳答案

来自ECMA standard (第 7.6 节)

The dollar sign ($) and the underscore (_) are permitted anywhere in an IdentifierName.

关于javascript - 为什么 "$"是一个有效的函数标识符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4795551/

相关文章:

javascript - 根据浏览器高度动画div

python - Python 中 AST 的抽象语法 : questions for "FunctionDef" et "arguments"

c++ - 提升精神: parse boolean expression and reduce to canonical normal form

scala - 语法、Scala 解析组合器和无序集

javascript - Ext Js Listview 列未正确隐藏或加宽

javascript - 根据提供的长度将重复的对象创建到数组中

javascript - Web组件: dynamic content inside <template>

python - 为什么 `OneOrMore` 在 pyparsing 中因多个表达式而失败?

java - Gate ANNIE 语法

javascript - 如何使用 javascript 进行跨域 http get 请求?