let reg=/<[^<>]+>/g; // 过滤掉所有html标签只剩下文本的正则表达式 this.setState({ schemeIntroduce : this.state.majorInfoList.schemeIntroduce.replace(reg, '') });