像這樣,我們將事件的處理器(event handler) 事先在 methods 屬性宣告,然後透過 ... 當使用者在輸入框按下enter 鍵後執行addToMessages --> <input ...
確定! 回上一頁