开发者

Mojo::DOM - XPath - Question

Why 开发者_StackOverflow中文版did the Mojo::DOM developers create their own Selectors and not use the XPath syntax?


They didn’t exactly. CSS syntax is much more natural to a lot of web developers and, despite xpath’s power, CSS is a better impedance match for HTML DOM. It’s one of the reasons jQuery has done so well for example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜