普通和苗条的jquery包之间有什么区别? [英] What are the differences between normal and slim package of jquery?

查看:95
本文介绍了普通和苗条的jquery包之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CDNJS 处放置了jquery.slim包.它具有较小的尺寸.与原版的主要区别是什么?快速浏览代码并没有找到答案,在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 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:

  1. jQuery.fn.extend
  2. jquery.fn.load
  3. jquery.each//附加一堆用于处理常见AJAX事件的函数
  4. jQuery.expr.filters.animated
  5. ajax设置,例如jQuery.ajaxSettings.xhr,jQuery.ajaxPrefilter,jQuery.ajaxSetup,jQuery.ajaxPrefilter,jQuery.ajaxTransport,jQuery.ajaxSetup
  6. 像jQuery.parseXML一样进行xml解析,
  7. 动画效果,例如jQuery.easing,jQuery.Animation,jQuery.speed

这篇关于普通和苗条的jquery包之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆