解决jquery与zepto等其它库冲突兼容的问题
;(function ($) {
    
}) (jQuery);

;(function ($) {
    
}) (Zepto);

 

在Bootstrap源码(具体请看《Bootstrap源码解析》)和其他jQuery插件经常看到如下的写法:

 

+function ($) {   
      
}(window.jQuery);

相关文章:

  • 2021-09-01
  • 2021-08-02
  • 2021-12-05
  • 2021-06-13
  • 2021-12-31
  • 2021-07-15
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-08-29
  • 2022-12-23
  • 2022-03-01
  • 2022-03-01
相关资源
相似解决方案