📜  iconify 图标名称 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:26.340000             🧑  作者: Mango

代码示例1
// run this code after open a icon and also in console
var textarea = document.querySelector(".si-code--classes")
var icondiv =  document.createElement("div")
icondiv.innerHTML = textarea.value
var iconspan =  icondiv.querySelector(".iconify")
var iconText = iconspan.classList[1]
var Icon = iconText.substring(5, iconText.length)
Icon