jquery的普通包和slim包有什么区别? [英] What are the differences between normal and slim package of jquery?
本文介绍了jquery的普通包和slim包有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 CDNJS 放置 jquery.slim 包.它的尺寸更小.与原版的主要区别是什么?快速查看代码并没有找到答案,在 https://jquery.com 我没有找到任何关于 slim
包的参考资料.
At CDNJS jquery.slim package is placed. It has a smaller size. What are the major differences from an original? A quick look at the code didn't bring the answer, and at the https://jquery.com I've not found any reference about slim
package.
那么,jquery.js
和jquery.slim.js
有什么区别呢?
So, what are the differences between jquery.js
and jquery.slim.js
?
推荐答案
查看代码发现jquery.js
和jquery.slim.js
有以下区别:
Looking at the code I found the following differences between jquery.js
and jquery.slim.js
:
在 jquery.slim.js
中,删除了以下功能:
In the jquery.slim.js
, the following features are removed:
jQuery.fn.extend
jquery.fn.load
jquery.each
(附上一堆处理常见AJAX事件的函数)jQuery.expr.filters.animated
- AJAX 设置(
jQuery.ajaxSettings.xhr
、jQuery.ajaxPrefilter
、jQuery.ajaxSetup
、jQuery.ajaxPrefilter
,jQuery.ajaxTransport
) - XML解析(
jQuery.parseXML
), - 动画效果(
jQuery.easing
、jQuery.Animation
、jQuery.speed
)
jQuery.fn.extend
jquery.fn.load
jquery.each
(attach a bunch of functions for handling common AJAX events)jQuery.expr.filters.animated
- AJAX settings (
jQuery.ajaxSettings.xhr
,jQuery.ajaxPrefilter
,jQuery.ajaxSetup
,jQuery.ajaxPrefilter
,jQuery.ajaxTransport
) - XML parsing (
jQuery.parseXML
), - Animation effects (
jQuery.easing
,jQuery.Animation
,jQuery.speed
)
这篇关于jquery的普通包和slim包有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文