onSearch=()=>{ let val = this.state.inputval.toUpperCase().replace(/\s*/g,""); console.log(val) if(val === ''){ message.warning("请输入订阅序列号") } else{ this.getsubscriptionCode(val.trim())//搜索内容方法 } }