Code Monkey home page Code Monkey logo

Comments (6)

fengmk2 avatar fengmk2 commented on April 19, 2024

这种纯类的定义文件,还是保持跟类名一直吧,也符合 react 的写法,要不然同时写 react 又写 node,会分裂。

from egg.

popomore avatar popomore commented on April 19, 2024

我习惯下划线,文件名不和代码应该没有相关性。

from egg.

atian25 avatar atian25 commented on April 19, 2024

类的话, 我这边是保持类名.

其实类名和下划线都行, 偏向前者. 如果是驼峰的, 就烧死

from egg.

dead-horse avatar dead-horse commented on April 19, 2024

因为类名可能就是大写开头的驼峰了,如果还用下划线做分隔符的话就有混用的感觉。。

from egg.

gxcsoccer avatar gxcsoccer commented on April 19, 2024

下划线 +1

from egg.

fengmk2 avatar fengmk2 commented on April 19, 2024

那我改成小写+下划线

from egg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.