var bar = document.getElementById("foo"); bar.setAttribute("onclick", "javascript:alert('This is a test!');");. 這裡利用setAttribute指定e ...
確定! 回上一頁