1
누군가 다음과 같은 오류가 발생하는 이유를 설명 할 수 있습니까? 내가 로컬 호스트에 갈 때 다음 디렉토리에서 SimpleHTTPServer 404 메시지 파일을 찾을 수 없습니다 (bootstrap.js로드 중)
, 나는[[email protected]:~/Dropbox/bootstrap]: ls
css img index.html js
"파이썬 -m SimpleHTTPServer"실행하고 있습니다 : 8000/브라우저에서, 나는 다음과 같은 오류 얻을 :
127.0.0.1 - - [16/May/2014 10:22:37] "GET/HTTP/1.1" 200 -
127.0.0.1 - - [16/May/2014 10:22:37] code 404, message File not found
127.0.0.1 - - [16/May/2014 10:22:37] "GET /%E2%80%9Djs/bootstrap.js%E2%80%9D HTTP/1.1" 404 -
을 그리고 예, js 디렉토리에서 두 파일 "bootstrap.js"와 "bootstrap.min.js"를 가지고 있습니다
내 index.html 파일은 다음과 유사합니다 :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My First Bootstrap Project</title>
</head>
<body>
<div class="container">
<h1><a href="#">Bootstrap Site</a></h1>
</div>
<link rel=”stylesheet” href=”css/bootstrap.css” type=”text/css”/>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src=”js/bootstrap.js”></script>
</body>
</html>