xampp을 사용하면 작동 할 jquery 스크립트를 얻을 수 없습니다 (모달 상자 생성). 그러나 html (즉, localhost 대신 htdocs 폴더에있는 파일로 이동)을 실행하면 제대로 작동합니다. 누구나 왜 또는 어떻게 작동시킬 수 있습니까?jamery가 xampp과 함께 작동하지 않습니다.
이 코드는 localhost로 이동하지 않으면 FINE으로 작동하므로 xampp을 사용하여 다른 작업을해야하는지 잘 모르겠습니다. 내가 시도하고 jquery 파일에 로컬 파일 경로를 사용하고 로컬 호스트를 통해 연결을 시도, 그래서 그게 문제가 아니에요.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Login Form</title>
<link rel="stylesheet" href="css/style.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script src="https://localhost/avesi/jquery.paulund_modal_box.js"></script>
</head>
<body>
<section class="container">
<div class="login">
<h1>Login to Web App</h1>
<form method="post" action="checklogin.php">
<p><input type="text" name="login" value="" placeholder="Username or Email"></p>
<p><input type="password" name="password" value="" placeholder="Password"></p>
<class="submit"><input type="submit" name="Login" value="Login">
</form>
</div>
<a href="#" class="paulund_modal">Click Here</a>
<button type = "button" id="dialog">Click Me!</button>
<script>
$(document).ready(function(){
$('.paulund_modal').paulund_modal_box();
});
</script>
</body>
</html>
참고 : Jquery는 광산이 아니며, 모달 작업을 전혀 시도하지 않았습니다.
첫째 :은'SRC를 변경 = "https : //로 로컬 호스트/avesi /'... "를 src ="/ avesi/... " 으로 변경하고 localhost에서 jquery를로드하고 사용자 정의 스크립트 앞에 문서의 끝에 – eapo
nvm/avesi /로 작동합니다. .. 당신이 스크립트의 앞에 문서의 끝에 무슨 뜻인지 모르겠습니까? – user1114503
디버그 콘솔의 출력? – eapo