变量的命名原则

1.尽量使用有含义的英文单词作为变量名
2.变量名采用骆驼命名法
3.变量命名符合“min-length && max-information”原则
4.尽量避免变量名中出现数字编号

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s