2021年7月27日

004. vue html模板字符串转为ast(js对象)

摘要: export default function parse(htmlStr) { htmlStr = htmlStr.replace(/^\s+|\s+$/g, '') let i = 0 let rest = htmlStr const startReg = /^<([a-z]+[0-6]?)>/ 阅读全文

posted @ 2021-07-27 17:25 章画 阅读(675) 评论(0) 推荐(1) 编辑

导航