div 元素預設不接受任何點選事件。在程式碼中,我們將JavaScript 函式 changeMyColor() 繫結到 div 的 onclick 事件處理程式。它現在使 div 可點選。
確定! 回上一頁