次のエラーが発生する理由を誰かが説明できますか?
以下のディレクトリから、「python -m SimpleHTTPServer」を実行しています。
[blah@blah:~/Dropbox/bootstrap]: ls
css img index.html js
ブラウザで localhost: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」という 2 つのファイルがあります。
私の 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>