type
status
date
slug
summary
tags
category
icon
password
标识符命名规则
- 第一个字符,可以是任意 Unicode 字母(包括英文字母和其他语言的字母),以及美元符号(
$)和下划线(_);
- 第二个字符及后面的字符,除了 Unicode 字母、美元符号和下划线,还可以用数字
0-9。
JavaScript 有一些保留字,不能用作标识符:arguments、break、case、catch、class、const、continue、debugger、default、delete、do、else、enum、eval、export、extends、false、finally、for、function、if、implements、import、in、instanceof、interface、let、new、null、package、private、protected、public、return、static、super、switch、this、throw、true、try、typeof、var、void、while、with、yield
- 作者:wwwanchengfei
- 链接:https://www.wanchengfei.com//article/javascript-basic
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。