ES 6 的写法
constructor(props) {
super(props);
this.state = {
style:{}
};
}
ES5的写法
getInitialState:function() {
return {
style:{}
};
}
ES 6 的写法
constructor(props) {
super(props);
this.state = {
style:{}
};
}
ES5的写法
getInitialState:function() {
return {
style:{}
};
}