jQuery 模块介绍
### jQuery 模块介绍
jQuery可以整体打包,也可以选择性的打包,但打包中除了core和selector模块,别的模块都是可选的。可选的模块如下:
1. ajax: ajax功能,$.ajax(),$.get(),$.post(),$.ajaxSetup,.load(), transports, .ajaxStart()等
2. ajax/xhr: XMLHTTPReqeust AJAX transport
3. ajax/script: <script> AJAX transport
4. ajax/jsonp: JSONP AJAX transport
5. css: .css()
6. css/showHide: .show, .hide()
7. deprecated: 被舍弃但保留的功能
8. dimensions: .width(),.height()
9. effects: .animation() , .slideUp()
10. event: .on .off
11. event/alias: .click()
12. event/focusin: 跨浏览器支持focusin和focusout
13. event/trigger: .trigger() 和 .triggerHandler
14. offset: .offset() .position .offsetParent()
15. wrap: .wrap .wrapAll()
16. core/ready: jQuery(document).ready()
17. deferred: deferred 清除jQuery callbacks
18. exports/global: 把$和jQuery从window中去除
19. exports/amd: 去除AMD定义
用grunt custom: modules_name 来进行隔离