?
Ce document utilise Manuel du site Web PHP chinois Libérer
jQuery 對象中元素的個數(shù)。
這個函數(shù)的返回值與 jQuery 對象的 size() 屬性一致。
計算文檔中所有圖片數(shù)量
<img src="test1.jpg"/> <img src="test2.jpg"/>
$("img").length;
2