DOM事件類知識淺層介紹

DOM事件類 1. DOM事件級別 DOM0級事件 DOM0 級時間分兩種,一是直接在標籤內添加執行語句,二是定義執行函數。 <input type="text" id="firstTest"> <input type="button" value="button" onclick="alert(document.getElementById('firstTest').value)"> <
相關文章
相關標籤/搜索