posts - 82, comments - 269, trackbacks - 0, articles - 1
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

02 2008 档案

     摘要: jQuery官方文档推荐开发插件时要按下面格式来写,我第一次看源代码时看到这样的写法,被郁闷了好半天。

(function($) {
// Code goes here
})(jQuery);

下面将记录为什么这样写,这样写具体有哪些好处。  阅读全文

posted @ 2008-02-18 19:47 itspy 阅读(4053) | 评论 (2)  编辑 |