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

查看:47
本文介绍了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.jsjquery.slim.js有什么区别呢?

So, what are the differences between jquery.js and jquery.slim.js?

推荐答案

查看代码发现jquery.jsjquery.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.xhrjQuery.ajaxPrefilterjQuery.ajaxSetupjQuery.ajaxPrefilter, jQuery.ajaxTransport)
  6. XML解析(jQuery.parseXML),
  7. 动画效果(jQuery.easingjQuery.AnimationjQuery.speed)
  1. jQuery.fn.extend
  2. jquery.fn.load
  3. jquery.each (attach a bunch of functions for handling common AJAX events)
  4. jQuery.expr.filters.animated
  5. AJAX settings (jQuery.ajaxSettings.xhr, jQuery.ajaxPrefilter, jQuery.ajaxSetup, jQuery.ajaxPrefilter, jQuery.ajaxTransport)
  6. XML parsing (jQuery.parseXML),
  7. Animation effects (jQuery.easing, jQuery.Animation, jQuery.speed)

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

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