2018-10-22 17:03:21   Visit  1114

React组件使用{}方式引入字符串时默认会转义其中的非法字符,以下方法不转义

<div dangerouslySetInnerHTML={{__html: \"<div>\"+this.state.DescriptionWillShow+\"</div>\"}} />
©2017 Leechg.com