合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
~~~ import React,{Component} from "react"; class App extends Component { constructor(props){ super(props); this.state={ msg:"hello world" } } render(){ return ( <div onClick={this.handleClick.bind(this)}> {this.state.msg} </div> ) } handleClick(){ this.setState({ msg:"change" }) } } export default App; ~~~