className={ this.state.isLike ? 'active iconfont icon-xihuan' : 'iconfont icon-xihuan1' } 转载于:https://www.cnblogs.com/winyh/p/7927984.html