jQuery 對象中元素的個(gè)數。
這個(gè)函數的返回值與 jQuery 對象的size()屬性一致。
計算文檔中所有圖片數量
<img src="test1.jpg"/> <img src="test2.jpg"/>
$("img").length;
2