약 한 시간 동안이 문제에 난처한 경험이 있습니다. 페이지가로드 될 때 alert
상자를로드하지 않는 다음 코드가 있습니다.jQuery 알림 상자가 나타나지 않습니다.
두 가지 다른 기계를 사용하지 않으려 고 노력했습니다. JS는 Chrome과 FF를 사용하여 두 기계에서 모두 사용 가능합니다.
<!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=utf-8" />
<title><?php echo $pageTitle; ?></title>
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--[if !IE 7]>
<style type="text/css">
#wrap {display:table;height:100%}
</style>
<![endif]-->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("hello");
}
</script>
</head>
<body>
...
</body>
</html>
전체 시간이 소요 내가 .. 다른 행복 늦은 밤 코딩을 모든 것을 제거 닫는 태그를 지울 관리했던로 포장해야합니다. 고마워요 :) – lethalMango