遇到個小需求是點擊按鈕後清除資料,並且要focus在第一個input上面,筆記一下做法. 1.html. 在input加上一個標籤ref="xxx". <div id="app"> <div> ...
確定! 回上一頁