JavaScript - 获取当前页面某个节点的个数

document.getElementsByTagName(<tag_name>).length;
posted @ 2018-09-13 15:29  Rocin  阅读(614)  评论(0编辑  收藏  举报