0
加卸載事件偵聽器,這是工作 但爲什麼不能使用addEventListener方法
<html>
<head>
</head>
<body>
</body>
<script>
function give_show(value){
return function(){
console.log(value);
}
}
var body_element = document.getElementsByTagName('body')[0];
body_element.addEventListener('load',give_show('pong!'),false)
</script>
</html>
將腳本放在'body'前面的'head'中 – mgraph 2012-02-08 18:18:32