Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 424 Bytes

代码规范.md

File metadata and controls

8 lines (6 loc) · 424 Bytes

代码规范

  1. 所有私有属性与私有函数以及不希望用户调用的属性与函数均以下划线开头。
  2. 所有公开属性与公开函数写私有属性与私有函数后面。
  3. 所有组件均不允许有构造函数,初始化的内容写入init()函数中,如有init()函数则必须有配套的dispose()函数。
  4. 所有函数尽可能有更少的输入,只做单一的任务。