获取iconfont图标项目中的全部图标名称

在网页中打开svg,控制台输入const nodeArray = Array.from(document.querySelectorAll('glyph'));
const names = nodeArray.map(item => item.attributes[0].nodeValue)
names.toString()

posted @ 2020-07-02 17:28  yyzyyzyyz  阅读(1311)  评论(0)    收藏  举报