通过将Sizzle.js与jquery1.4.2一起包含,我可以如何获得好处? [英] How and what benefit can I take by including Sizzle.js along with jquery1.4.2?

查看:54
本文介绍了通过将Sizzle.js与jquery1.4.2一起包含,我可以如何获得好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新jquery 1.4.2也附带有Sizzle.js.

latest jquery 1.4.2 downloaded from jquery.com comes with Sizzle.js also.

我可以从包含的Sizzle.js中获得什么好处?

How and what benefit can I take from included Sizzle.js?

Sizzle.js是一个独立的库吗?

Is Sizzle.js a standalone library?

为什么它包含在jquery库中,用于什么目的?

Why it's included inside jquery library, for what purpose?

/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */

在sizzle.js网站上提到了这一点

while this is mentioned on sizzle.js website

完全独立(无库)依赖性)

Completely standalone (no library dependencies)

推荐答案

Sizzle.js 是一个实现了JavaScript的库旨在轻松放入主机库的CSS选择器引擎".jQuery在内部将其用于满足CSS选择需求.如果您需要CSS引擎并且不需要jQuery的所有其他JavaScript优势,则可以单独使用Sizzle.js.

Sizzle.js is a JavaScript library that implements a "CSS selector engine designed to be easily dropped in to a host library." jQuery uses it internally for its CSS selection needs. If you wanted a CSS engine and had no need for all the other JavaScript benefits of jQuery, you could use Sizzle.js separately.

这篇关于通过将Sizzle.js与jquery1.4.2一起包含,我可以如何获得好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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