欢迎,
今天我发现并决定把pjax,但我什至无法从该站点复制文件不起作用。
如何让它发挥作用?都在这里填写。
顺便说一句,单击时是否可以更新几个块 pjax?
提前致谢!
我的代码:
<script src="http://pjax.heroku.com/jquery.js"></script>
<script src="http://pjax.heroku.com/jquery.cookie.js"></script>
<script src="http://pjax.heroku.com/pages.js"></script>
<script src="http://pjax.heroku.com/jquery.pjax.js"></script>
<script type="text/javascript">
$(function(){
// pjax
$('ul a').pjax('#main')
})
</script>
<pre>
/ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
| <b>It's 09:32:10 PM</b>
\_ ________________
.--. ( )
/ \ ( )
## a a .
( '._)
|'-- |
_.\___/_ ___<label><input type="checkbox" name="pjax" />pjax</label>___
."\> \Y/|<'. '._.-'
/ \ \_\/ / '-' /
| --'\_/|/ | _/
|___.-' | |`'`
| | |
| / './
/__./` | |
\ | |
\ | |
; | |
/ | |
jgs |___\_.\_
`-"--'---'
<a href="https://github.com/defunkt/jquery-pjax">github.com/defunkt/jquery-pjax</a>
</pre>
<div id="main">
<ul>
<li>home</li>
<li><a href="/dinosaurs.html">dinosaurs</a></li>
<li><a href="/aliens.html">aliens</a></li>
</ul>
<p>
pjax loads html from your server into the current page
without a full page load. It's ajax with real permalinks,
page titles, and a working back button that fully degrades.
</p>
<p>
Check the box to toggle pjax.
</p>
<p>
Whenever the time changes, a full page load has happened.
If the time doesn't change, no full page load has occurred.
</p>
<p>
The idea is you can't tell the difference between pjax
page loads and normal page loads. On complicated sites,
browsing just "feels faster."
</p>
<p>
<a href="https://github.com/defunkt/jquery-pjax/tree/heroku">
view this example's source code
</a>
</p>
</div>