react const inputChange = (e:React.ChangeEvent<HTMLInputElement> ) => { }; vue const inputChange = (e:Event)=>{ const val = (e.target as EventTarget)?.value } //扩展EvenetTarget类型 declare interface EventTarget{ value:string; }