状态必须通过setState方法设置后,render方法才会重新调用.
方法一:
for(each in result['rankArr']){that.state.jobrank_name.push(result['rankArr'][each]['areaname']);}that.setState({jobrank_name:that.state.jobrank_name});
方法二:
//点击确定后执行
dealDecideditems() {this.state.jobarr = global.job_arr;this.state.areaarr = global.area_arr;this.state.industryarr = global.indus_arr;this.setState(this.state); }新闻热点
疑难解答