如题,不用ajax。
1
icedx Oct 26, 2014 via Android
框架
|
3
imn1 Oct 26, 2014
用div做分页,切换显示就是了
|
4
klam Oct 26, 2014
把数据一次性全部载入,然后保存在变量或dom里..
|
5
avrillavigne Oct 26, 2014
@Imivan iframe 笑出声
|
6
Imivan OP |
8
kmvan Oct 26, 2014
用Jsonp
|
9
aliuwr Oct 26, 2014
你需要的应该是 HTML5 History API:
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#Adding_and_modifying_history_entries Demo: http://html5demos.com/history 由于是 HTML5 里的标准, 对于古董浏览器, 可以使用 location.hash 作为替代品. |
12
shsf4 Oct 26, 2014
试试angular.js的路由功能~~
|
13
aliuwr Oct 26, 2014 via Android
|
15
Imivan OP @aliuwr 可以给个window.location.hash源码和演示么?w3school没有,网上的资料也很少。前端渣渣,谢谢了。
|
16
aliuwr Oct 29, 2014
|