感谢您的帮助。
我的jQuery代码没有加载到ajax内容中。
Index.html:
<script language="javascript" type="text/javascript">
$(function() {
$("#gps").load("find.php");
});
</script>
/index.html#!/ gallery.html
<div id="gps"><center>Loading...</center></div>
gallery.html上的网络标签
http://localhost/gallery-3col.html
GET /gallery-3col.html HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Referer: http://localhost/index.html
Connection: keep-alive
If-Modified-Since: Thu, 08 Oct 2015 00:06:37 GMT
If-None-Match: "30c-5218ca2fa3d40"
HTTP/1.1 304 Not Modified
Date: Thu, 08 Oct 2015 00:34:41 GMT
Server: Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.5.19 mod_perl/2.0.8-dev Perl/v5.16.3
Connection: Keep-Alive
Keep-Alive: timeout=5, max=99
Etag: "30c-5218ca2fa3d40"
感谢您的回答;-) 亚历
答案 0 :(得分:0)
感谢您的帮助。
有人可以检查:
http://umberto073.cloudapp.net/ajax/ajax/#!/index.html(点击它,然后点击左边的菜单,然后点击图库)
该页面应该加载div(使用.load jQuery),例如: