Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredsang committed Feb 12, 2014
1 parent 6317a02 commit 979415a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/jquery.plugin.md
Expand Up @@ -301,6 +301,24 @@ v2的js只是根据tab的骨架接口修改而进行了简单修改,主要是d

是不是很简单?

### 代码基础说明

#### 命名空间

防止变量方法污染的

(function($) {

})(jQuery);

#### 分号问题

防止被别人的代码暗箭所伤

This comment has been minimized.

Copy link
@greatghoul

greatghoul Feb 13, 2014

这个能否解释的具体些?


;(function($) {

})(jQuery);

### 配置项

// 将defaults 和 options 参数合并到{}
Expand Down

0 comments on commit 979415a

Please sign in to comment.