forked from aralejs/aralejs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
常用词命名统一表
lifesinger edited this page May 7, 2012
·
7 revisions
规则:
1. 可读性强,见名知义。
1. 尽量不与 jQuery 社区已有的习惯冲突。
1. 不用缩写,除非是下面列表中约定的。
大家一起来,逐步完善。
常用词 | 说明 |
options | 表示配置,与 jQuery 社区保持一致,不要用 config, opts 等 |
active | 表示当前,不要用 current 等 |
index | 表示索引,不要用 idx 等 |
srcNode | UI 类组件在 DOM 树中对应的节点 |
trigger | 触点元素 |
context | 表示传入的 this 对象 |
object | 推荐写全,不推荐简写为 o, obj 等 |
element | 推荐写全,不推荐简写为 el, elem 等 |