js calculate how many page labels

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/nightwishh/article/details/100914357

Record this line of code to deepen the learning-based.

new Set([...document.querySelectorAll('*')].map(index => index.tagName))

Test results are as follows:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/nightwishh/article/details/100914357