mootools 选择器

    技术2022-07-11  122

    mootools 选择器

    jQuery creator John Resig released his Sizzle selector engine. MooTools rightfully opted not to use Sizzle for a variety of reasons:

    jQuery的创建者John Resig发布了他的Sizzle选择器引擎 。 MooTools出于多种原因正确选择不使用Sizzle :

    Sizzle currently offers no speed improvements over MooTools' current selector engine. (John Resig commented about this below.)

    与MooTools当前的选择器引擎相比 ,Sizzle当前没有任何速度改进 。 (John Resig在下面对此进行了评论。)

    The MooTools team would have to give up a level of control over its own framework.

    MooTools团队必须放弃对其自身框架的控制水平。 Sizzle doesn't follow MooTools' strict coding standards.

    Sizzle没有遵循MooTools的严格编码标准。

    I agree completely with the Valerio's decision but you may not. Here's how you can implement Sizzle as MooTools' selector engine.

    我完全同意Valerio的决定,但您可能不同意。 这是将Sizzle实现为MooTools的选择器引擎的方法。

    MooTools / jQuery JavaScript (The MooTools / jQuery JavaScript)

    //just as reader "Ryan" mentioned.... Window.$$ = function(selector){ return new Elements(new Sizzle(selector)); }

    I'll go on record saying that Valerio's post was poetic and 100% on the money: Sizzle is not the answer to a question that hasn't already been answered. MooTools' selector engine is fast and highly extensible.

    我会继续记录下来,说Valerio的帖子富有诗意,而且100%都花在钱上:Sizzle并不是尚未得到回答的问题的答案。 MooTools的选择器引擎快速且高度可扩展。

    翻译自: https://davidwalsh.name/mootools-sizzle

    mootools 选择器

    相关资源:jdk-8u281-windows-x64.exe
    Processed: 0.010, SQL: 9