mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-23 19:21:04 +08:00
Code Style
This commit is contained in:
@@ -14,9 +14,13 @@
|
||||
|
||||
## Coffee Script
|
||||
|
||||
* `,`, `:` 之前不加空格,之后总是添加空格;`->` 前后均加空格
|
||||
* 不可以出现空的参数列表
|
||||
* 不在行末添加分号,不在一行内使用分号分割两行代码
|
||||
* 类名使用大驼峰命名,如 `SampleClass`
|
||||
* 优先使用单引号
|
||||
* 总是省略所有跨行的括号和花括号,尽可能省略掉函数调用的括号
|
||||
* 标点后总是添加空格
|
||||
|
||||
* 变量名使用全小写用下划线分割,函数名使用小驼峰
|
||||
|
||||
## HTML
|
||||
|
||||
Reference in New Issue
Block a user