| Prefix
type |
Example |
|
##Array |
a |
Array |
##aItems |
Boolean value |
b |
##Boolean |
bIsComplete |
##Floating point number |
f |
Float |
##fPrice |
##Function |
fn |
Function |
fnHandler |
Integer |
i |
##Integer |
##iItemCount |
##Object
|
o
|
Object |
##oDiv1 |
#Regular expression |
##re
|
RegExp
|
reEmailCheck
|
String |
s |
##String |
##sUserName |
##Variant variable
|
v
|
Variant |
##vAnything |
The above is the detailed content of Detailed explanation of JS variable naming convention. For more information, please follow other related articles on the PHP Chinese website!