统计所有id为pp的标签下<a>标签的个数

 


js这样写:document.getElementById("pp").getElementsByTagName("a").length;
jquery这样写:$("#pp a").index()+1;
posted @ 2015-01-14 17:51  我去不科学的-ef  阅读(162)  评论(0编辑  收藏  举报