这是我的代码
constructor(arg) {
super(arg);
this.state = {
content: this.props.content.contentType === "common" ? this.props.content.content.slice(0, 4) : null,
listIndex: 4,
problemType: 'common',
events: this.props.ProfessionalProblemList,
beginX: null,
beginY: null,
endX: null,
endY: null
}
};
ie中需要把this.props修改成arg,即在super中声明的参数