摘要: if(!document.all){ document.all = function(id) { var all = document.getElementsByTagName("*"); var results = new Array(); for(var i = 0; i < all.length; i++) { if(all[i].id == id) { results.push(all[i]); } } return results; }} var b = document.all("a");alert(b.length);firefox下 阅读全文
posted @ 2012-09-18 09:29 Black Bean 阅读(229) 评论(0) 推荐(0) 编辑