📜  Node.js 数据库字段命名约定 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:12.394000             🧑  作者: Mango

代码示例1
Two choices:

> use camelCase everywhere, but keep using snake_case only for
server-generated attributes
 
> always manually convert to camelCase after you get the data
back from the network, and use camelCase everywhere.
If you have to pick a global convention on both sides,
JavaScript should win - ie, camelCase.