5
此代碼無法運行的任何想法?javascript onDOMContentLoaded不會觸發
<html><head>
<script type="text/javascript">
document.onDOMContentLoaded=function(){
alert('aaaaaaaaaaaaaa');
}
</script>
</head>
<body>
<div id="mydiv"></div>
</body>
</html>
onDOMContentLoaded預計當網頁加載到triogger並做出警報,但它不工作,說不上爲什麼
+1總結我在JavaScript中編程時的感受:*'aaaaaaaaaaaaaa'*! – HostileFork 2014-03-23 06:40:17