直接在element tag 上面加HTML attribute。例如:. <button onclick="doSomeCoolStuff()">Click me</button>. 透過JavaScript 選到元素後,置換它的event handler。
確定! 回上一頁