? This document uses PHP Chinese website manual Release
jQuery 對象中元素的個(gè)數(shù)。
當(dāng)前匹配的元素個(gè)數(shù)。與 length 將返回相同的值。
自1.8版本廢棄,請使用.length代替
計(jì)算文檔中所有圖片數(shù)量
<img src="test1.jpg"/> <img src="test2.jpg"/>
$("img").size();
2