? 本文檔使用 PHP中文網(wǎng)手冊 發(fā)布
把jQuery集合中所有DOM元素恢復(fù)成一個數(shù)組。
得到所有l(wèi)i的元素數(shù)組
alert($('li').toArray());
[<li id="foo">, <li id="bar">]