将 DOMString 转换为 DOM 节点并插入 DOM

index.js

const root = document.getElementById('root')
root.innerHTML = `
	<h1>hello</h1>
	<strong>
		<span>world</span>
	</strong>
`

posted on 2021-09-10 10:06  aisowe  阅读(349)  评论(0编辑  收藏  举报

导航