问题描述
我的代码是这样的:
class QueryTabs extends React.Component {
constructor(props) {
super(props)
}
iframe = () => {
return {
__html: '<iframe name="info" data-list="sss" src="./webContent/index.html"></iframe>'
}
}
render() {
return (
<Tabs defaultActiveKey="1">
<TabPane tab="Tab 1" key="1">
<div id='aa'></div>
<div dangerouslySetInnerHTML={this.iframe()} />
</TabPane>
<TabPane tab="Tab 2" key="2">
Content of Tab Pane 2
</TabPane>
<TabPane tab="Tab 3" key="3">
Content of Tab Pane 3
</TabPane>
</Tabs>
)
}
}
export default QueryTabs
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)