下面的簡單代碼會輸出兩個警報,而不是一個Google Chrome瀏覽器。你能告訴爲什麼只有在Chrome中?Chrome Javascript Double Alert Loop?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Can you tell?</title>
<script language="javascript" type="text/javascript">
function hitme()
{
alert('yep!');
}
</script>
</head>
<body>
<a href="#" onmouseover="hitme();">LINK</a>
</body>
</html>
由鉻看到錨文本+這是行?
什麼使這個雙盒在Chrome?
確定你沒有鼠標兩次? – 2009-06-24 02:49:36