V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
rundis
V2EX  ›  问与答

什么时候用驼峰命名法什么时候用下划线?

  •  
  •   rundis · 2015-05-14 20:49:33 +08:00 · 3633 次点击
    这是一个创建于 3241 天前的主题,其中的信息可能已经有所发展或是发生改变。

    rt,不知道各什么时候用比较合适。。

    rundis
        1
    rundis  
    OP
       2015-05-14 21:17:22 +08:00
    我记得是不是说类名用驼峰命名法然后其他用下划线?
    adspe
        2
    adspe  
       2015-05-14 21:21:25 +08:00   ❤️ 1
    DOM编程艺术里写的是Function用驼峰,Variable用下划线。
    rundis
        3
    rundis  
    OP
       2015-05-15 06:22:38 +08:00
    @adspe 哦谢谢!话说dom编程艺术是什么书?是关于代码风格的吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1367 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:35 · PVG 07:35 · LAX 16:35 · JFK 19:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.