const inputEl = useRef( null ). const onButtonClick=()=>{. inputEl.current.value= "Hello ,JSPang". console.log(inputEl) //输出获取到的DOM ...
確定! 回上一頁