Skip to content

[软技能] 第168天 写js代码时你喜欢哪种命名方式? #1282

Open
@haizhilin2013

Description

@haizhilin2013

第168天 写js代码时你喜欢哪种命名方式?

Activity

Davidyanlong

Davidyanlong commented on Oct 1, 2019

@Davidyanlong

js使用驼峰方式命名 css 使用减号(-)

vkboo

vkboo commented on Oct 2, 2019

@vkboo
  • JS代码普通变量:小驼峰
  • JS代码类名:大驼峰
  • JS代码获取接口属性: data['field']
  • Node.js暴露接口属性名:全小写下划线
wwqin

wwqin commented on Oct 2, 2019

@wwqin

基本使用驼峰方式命名,但是css使用-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@Davidyanlong@vkboo@wwqin

        Issue actions

          [软技能] 第168天 写js代码时你喜欢哪种命名方式? · Issue #1282 · haizlin/fe-interview