diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/identifier | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/glossary/identifier')
-rw-r--r-- | files/zh-cn/glossary/identifier/index.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/identifier/index.html b/files/zh-cn/glossary/identifier/index.html new file mode 100644 index 0000000000..ce7b5f003e --- /dev/null +++ b/files/zh-cn/glossary/identifier/index.html @@ -0,0 +1,18 @@ +--- +title: 标识符 +slug: Glossary/Identifier +tags: + - 词汇表 +translation_of: Glossary/Identifier +--- +<p>代码中用来标识<strong>{{glossary("variable","变量")}}、{{glossary("function","函数")}}、或{{glossary("property","属性")}}</strong>的字符序列。</p> + +<p>在{{glossary("JavaScript")}}中,标识符只能包含字母或数字或下划线(“_”)或美元符号(“$”),且不能以数字开头。标识符与字符串不同之处在于字符串是数据,而标识符是代码的一部分。在 JavaScript 中,无法将标识符转换为字符串,但有时可以将字符串解析为标识符。</p> + +<h2 id="了解更多">了解更多</h2> + +<h3 id="基本知识">基本知识</h3> + +<ul> + <li>{{interwiki("wikipedia", "Identifier#In_computer_science", "Identifier")}} on Wikipedia</li> +</ul> |