l可读性——能看懂
l规范性——符合规则
l匈牙利命名法
l类型前缀
类型
前缀
类型
实例
数组
a
array
aitems
布尔值
b
boolean
biscomplete
浮点数
f
float
fprice
函数
fn
function
fnhandler
整数
i
integer
iitemcount
对象
o
object
odiv1
正则表达式
re
regexp
reemailcheck
字符串
s
string
susername
变体变量
v
variant
vanything
l首字母大写
以上就是js变量命名规范详解的详细内容。
