所有標準DOM 事件物件都有一個 target 屬性, 參考觸發該事件的元素。 在本例中, target 是 <input> 元素, event.target.value 返回該元素的當前內容。
確定! 回上一頁