?
This document uses PHP Chinese website manual Release
jQuery 對(duì)象中元素的個(gè)數(shù)。
這個(gè)函數(shù)的返回值與 jQuery 對(duì)象的 size() 屬性一致。
計(jì)算文檔中所有圖片數(shù)量
<img src="test1.jpg"/> <img src="test2.jpg"/>
$("img").length;
2