?
This document uses PHP Chinese website manual Release
將類數(shù)組對(duì)象轉(zhuǎn)換為數(shù)組對(duì)象。
類數(shù)組對(duì)象有 length 屬性,其成員索引為 0 至 length - 1。實(shí)際中此函數(shù)在 jQuery 中將自動(dòng)使用而無需特意轉(zhuǎn)換。
類數(shù)組對(duì)象。
過濾數(shù)組中小于 0 的元素。
<div>First</div><div>Second</div><div>Third</div><div>Fourth</div>
var arr = jQuery.makeArray(document.getElementsByTagName("div")); arr.reverse(); // 使用數(shù)組翻轉(zhuǎn)函數(shù)
Fourth Third Second First