JavaScript基礎知識學習記錄

1.DOM0級事件與DOM2級事件 【1】DOM0級事件javascript 在標籤內寫onclick事件 在js中寫onclick=function(){}函數 示例:html <input id="myButton" type="button" value="Press Me" onclick="console.log('thanks');" > document.getElementById
相關文章
相關標籤/搜索