將事件當成HTML標籤屬性,例如, ... 1, < input type = "button" value = "訊息" onclick = "showInfo()" /> ... 5, // 設定myP元素的onclick事件 ...
確定! 回上一頁