摘要:
一、typeof console.log(typeof 1); // number console.log(typeof true); // boolean console.log(typeof 'mc'); // string console.log(typeof function(){}); / 阅读全文
posted @ 2020-12-27 21:35
ZJTL
阅读(312)
评论(0)
推荐(0)
摘要:
获取所有的DOM节点 document.querySelectorAll('*') NodeList集合转化为数组 [...document.querySelectorAll('*')] 获取数组每个元素的标签名 [...document.querySelectorAll('*')].map(ele 阅读全文
posted @ 2020-12-27 21:19
ZJTL
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号