添加事件时我们遇到FF4的问题。看起来比我们的活动被捕获和冻结。最后我们在FF4上有灰色屏幕
<html>
<head>
<script type="text/javascript">
function addEvent(elem, type, eventHandle) {
if (elem == null || elem == undefined) return;
if ( elem.addEventListener ) {
elem.addEventListener( type, eventHandle, false );
} else if ( elem.attachEvent ) {
elem.attachEvent( "on" + type, eventHandle );
}
};
addEvent(window, "resize", function() { alert("hello there!"); } );
</script>
</head>
<body>
test resize page
</body>
</html>
这在IE7,Chrome,FF3中是正常的工作
答案 0 :(得分:0)