标签:return 事件绑定 class cli java alert ret time span
const App = props => { let alerts = () => { alert(props.time) } let is = {color:props.color? "red" : "blue"} return <div onClick={alerts} style={is}>{props.time},</div>; } let Apps = ()=>{ return <div> {arrTime.map(item => <App key={item.time} time={item.time} color={item.color} />)} </div> }
标签:return 事件绑定 class cli java alert ret time span
原文地址:https://www.cnblogs.com/js-liqian/p/11747638.html