-1

我不时看到一些反对使用它的分歧,但有哪些明显的客观缺点?据我所知,它倾向于采用最有效的实现路线,并且开销最小。所以有什么问题?当然它不能做所有事情,但是为什么不使用它呢?

4

1 回答 1

1

Some of the element selectors it offers do not give good performance e.g. reg-ex based element selector or css class based element selector. These selectors crawl entire DOM to fetch all matching elements. Similarly other DOM manipulation capabilities like moving back and forth in DOM using "prev" and "next" methods would be slow. All the overheads which are there should be considered keeping in mind the browsers/OS combination.

于 2013-06-17T03:56:37.357 回答