react 特殊字符处理

2021-08-20  本文已影响0人  一只哈哈

const v = '<div id="number">123</div>';
<div dangerouslySetInnerHTML={{ __html: v }} />

上一篇下一篇

猜你喜欢

热点阅读