用Sizzle替换dojo.query? [英] replace dojo.query with Sizzle?

查看:106
本文介绍了用Sizzle替换dojo.query?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dojo拥有最慢的选择器比较其他JS框架

Dojo has got the slowest selectors compared to other JS frameworks.

我想知道是否可以在Dojo中使用Sizzle来使dojo.query在幕后使用?我认为它是用在jQuery这样的方式,所以应该可以在Dojo。

I was wondering if it was possible to use Sizzle within Dojo to make dojo.query use it behind the scenes? I think it is used in jQuery that way, so it should be possible in Dojo too.

找不到任何有关如何做的信息。

Couldn't find any info about how to do that.

PS
链接中的测试似乎正在积极开发并每天更改,因此请确保您选择该页面上的最新版本。

PS The test at the link seems to be being actively developed and changes daily, so make sure you select the latest version on that page.

编辑: 看来,测试中的数字不正确,Dojo和其他人之间的区别并不是那么激进。这使得将Sizzle纳入Dojo的任务不值得努力。

推荐答案

我问你的数字。对于Dojo的查询引擎,其他已经得出相反的结论。他们都很快,到了可能没有那么大的区别。

I question your numbers. Others have come to the opposite conclusion about Dojo's query engine. They're all pretty fast, to the point where is probably doesn't make that big a difference.

这篇关于用Sizzle替换dojo.query?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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