摘要: 无意间发现的一段代码,挺有意思: const hexToRgba = (hex, opacity) => { let rgbaColor = ""; let reg = /^#[\da-f]{6}$/i; if (reg.test(hex)) { rgbaColor = `rgba(${parseI 阅读全文
posted @ 2020-07-29 09:33 真的想不出来 阅读(388) 评论(0) 推荐(0) 编辑