这是一个奇怪的问题。我不太确定发生了什么。我不知道是 MAMP 服务器导致问题还是 Laravel。我以前从未见过这个。
我在我的 MAC OS X 上使用 Google Chrome。在控制台中我得到一个 GET 错误。但是当我去网络时,它仍然显示为错误,当我点击像响应这样的选项卡时,它显示没有加载......即使页面上有内容。然后,当我单击标题时,它说状态是 200... 太好了... 困惑了吗?
甚至预览都是空的......带有没有加载的错误消息。
现在,如果我回到控制台并刷新它会在不同的行显示错误......所以一旦它在 74,然后我刷新并得到 81,如果我再次刷新它会显示另一个数字......非常奇怪。
即使是我在 HTML 底部加载的 javascript 有时也能正常工作,有时却不能......
更奇怪的是,它都可以在 Firefox 中运行。我尝试清空 Chrome 中的缓存......没有任何效果。有任何想法吗?建议?
更新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Yaloub</title>
<meta name="keywords" content="Yaloub, app network"/>
<meta name="description" content="Yaloub is a app network."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="http://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="http://localhost:8888/Yaloub/public/assets/css/style.css"/>
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://localhost:8888/Yaloub/public/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://localhost:8888/Yaloub/public/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://localhost:8888/Yaloub/public/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://localhost:8888/Yaloub/public/assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="http://localhost:8888/Yaloub/public/assets/ico/favicon.png">
</head>
<body>
<div id="wrap">
<!-- Navbar -->
<div class="navbar">
<img src="http://localhost:8888/Yaloub/public/assets/ico/logo-page.png" alt=" " style="position:absolute;"/>
<ul class="nav pull-right">
<!--<li><a href="http://localhost:8888/Yaloub/public/user">Logged in as user</a></li>-->
<li><a href="http://localhost:8888/Yaloub/public/user/logout">Logout</a></li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- ./ navbar -->
<!-- Container -->
<div class="main container">
<!-- Notifications -->
<!-- ./ notifications -->
<!-- Content -->
<section>
<ul id="apps">
<li class="app">
<div class="app-frame">
<a href="http://localhost:8888/Yaloub/public/ebooks" class="thumbnail"><img src="http://localhost:8888/Yaloub/public/assets/img/whitepage.png" alt="Ebooks" style="width: 200px; height: 200px;"/></a>
</div>
<div class="app-controls">
<ul>
<li class="app-controls-appname">Ebooks</li><li class="app-controls-favorite"><a href="app/ebooks/favorite/add"><div><span>Favorite</span></div></a></li><li class="app-controls-right-button app-controls-settings"><a href="app/ebooks/settings"><div><span>Settings</span></div></a></li>
</ul>
</div>
</li>
<li class="app">
<div class="app-frame">
<a href="http://localhost:8888/Yaloub/public/videos" class="thumbnail"><img src="http://localhost:8888/Yaloub/public/assets/img/videos.png" alt="Videos" style="width: 200px; height: 200px;"/></a>
</div>
<div class="app-controls">
<ul>
<li class="app-controls-appname">Videos</li><li class="app-controls-favorite"><a href="app/videos/favorite/add"><div><span>Favorite</span></div></a></li><li class="app-controls-right-button app-controls-settings"><a href="app/videos/settings"><div><span>Settings</span></div></a></li>
</ul>
</div>
</li>
<li class="app">
<div class="app-frame">
<a href="http://localhost:8888/Yaloub/public/photos" class="thumbnail"><img src="http://localhost:8888/Yaloub/public/assets/img/photos.png" alt="Photos" style="width: 200px; height: 200px;"/></a>
</div>
<div class="app-controls">
<ul>
<li class="app-controls-appname">Photos</li><li class="app-controls-favorite"><a href="app/photos/favorite/add"><div><span>Favorite</span></div></a></li><li class="app-controls-right-button app-controls-settings"><a href="app/photos/settings"><div><span>Settings</span></div></a></li>
</ul>
</div>
</li>
</ul>
</section>
<section id="app-settings">
<form method="POST" action="http://localhost:8888/Yaloub/public/app/appname/settings/add" accept-charset="UTF-8">
<input type="hidden" name="_token" value="kfVaUXWVq8HuujqEuJQeVrD5kjr1HZR4Q0YNAm0q"/>
<fieldset>
<label for="app-settings-name">Name:</label>
<input tabindex="1" type="text" name="app-settings-name" id="app-settings-name" />
<label for="app-settings-url">URL:</label>
<input tabindex="2" type="text" name="app-settings-url" id="app-settings-url" />
<label for="app-settings-clientid">Client id:</label>
<input tabindex="3" type="text" name="app-settings-clientid" id="app-settings-clientid" />
<button tabindex="4" type="submit" class="btn">Save</button>
<button tabindex="5" class="btn">Delete</button>
</fieldset>
</form>
</section>
<!-- ./ content -->
<div style="clear:both;"></div>
</div>
<!-- ./ container -->
<!-- the following div is needed to make a sticky footer -->
<div id="push"></div>
</div>
<!-- ./wrap -->
<footer id="footer">
<div class="container">
<p class="muted credit">© All right reserved to Yalub.</p>
</div>
</footer>
<script src="http://localhost:8888/Yaloub/public/assets/js/mootools-core-1.4.5-full-nocompat-yc.js"></script>
<script src="http://localhost:8888/Yaloub/public/assets/js/site.js"></script>
</body>
</html>
这是我刷新它时发生的情况,它向我发送了另一行错误:
这是再次刷新后,请记住我没有触摸代码: