Skip to content

关于js变量命名的疑问 #9

@OumCc

Description

@OumCc

变量命名
标准变量采用驼峰式命名(除了对象的属性外,主要是考虑到cgi返回的数据)
'ID'在变量名中全大写
'URL'在变量名中全大写
'Android'在变量名中大写第一个字母
'iOS'在变量名中小写第一个,大写后两个字母
常量全大写,用下划线连接
构造函数,大写第一个字母
jquery对象必须以'$'开头命名

团队规范文档中提到的标准变量采用驼峰式命名(除了对象的属性外,主要是考虑到cgi返回的数据),想知道什么是cgi?

既然对象的属性不以驼峰的形式命名,那么是以什么方式命名?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions