Can only set one of `children` or `props.dangerouslySetInnerHTML`
来源:3-4 JSX语法细节补充
x兔子
2019-07-19
Can only set one of children
or props.dangerouslySetInnerHTML
写回答
2回答
-
Lusiano
2019-10-02
我也是这样
<ul>
{
this.state.list.map((item, index)=>{
return <li
key={index}
onClick={this.handleItemDelete.bind(this, index)}
dangerouslySetInnerHTML={{__html: item}}
>
{item}
</li>
})
}
</ul>032022-11-13 -
Dell
2019-07-24
看下你代码怎么写的
022019-10-02
相似问题