1、 2、在方法中打印event.target.tagName test = (event) => { console.log(event.target.tagName) } 你会发现allowClear和Search打印出来是不一样的