getElementsByClassName

前陣子找資料翻到 這篇,在 3 上面測試的速度差異。

最快的當然是瀏覽器直接提供 getElementsByClassName() 函數,再來是利用 XPath 模擬,最慢的是透過 getElementsByTag() 的 * 再抓 class。

This entry was posted in Browser, Computer, Firefox, Murmuring, Network, Programming, Software, WWW. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *