Comments (6)
这种纯类的定义文件,还是保持跟类名一直吧,也符合 react 的写法,要不然同时写 react 又写 node,会分裂。
from egg.
我习惯下划线,文件名不和代码应该没有相关性。
from egg.
类的话, 我这边是保持类名.
其实类名和下划线都行, 偏向前者. 如果是驼峰的, 就烧死
from egg.
因为类名可能就是大写开头的驼峰了,如果还用下划线做分隔符的话就有混用的感觉。。
from egg.
下划线 +1
from egg.
那我改成小写+下划线
from egg.
Related Issues (20)
- 传闻Eggjs不再维护了,是真的吗? HOT 4
- new version available: 2.3.1 → 3.0.0, not compatible, you must update to use this. HOT 7
- 同一个方法在放在eggjs服务schedule 定时模块里面执行就可以获取的到inputElem,但是放到controller模块里面通过接口调用时获取不到呢,再express里面也可以成功调用,debug模式可能获取得到 HOT 3
- v3的文档多会更新,EggLogger 怎么用????? HOT 3
- 使用问题: 请问如何在egg应用下运行脚本,以及如何在脚本中使用app中的service,helper,db等能力 HOT 1
- egg-mysql能配置连接断开后自动重连吗
- eggjs 在容器通过前台启动,如何将stdout和stderr日志输出到日志文件 HOT 1
- curl返回值类型缩小 HOT 2
- docker中启动项目失败,提示"Plugin development is disabled by env unmatched, require env([ 'local' ]) but got env is prod" HOT 2
- index.d.ts关于xframe.value的声明中“ALLOW-FROM”有问题 HOT 1
- egg怎么禁止 http 转到https, 我所有的资源,请求 都在http,现在我启动egg, 304转发到了https, 我想禁掉这个 HOT 2
- Stream模式下多文件上传 如何先通过validate验证下参数 再决定上传否 HOT 7
- 如何配置本地开发环境可以支持有多个不同config.devXXX.js HOT 7
- create-Egg not found HOT 2
- extend/application.js空导出,导致接口返回404 HOT 1
- 文档链接显示错误
- 依照官网初始化项目 HOT 1
- eggjs处理服务端请求有超时时间吗 HOT 3
- 在 service 中 extends egg 暴露的 Service 项目无法启动 HOT 1
- egg-router-plus 根 router 应该支持正则 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg.