jquery spa

1.hashchange监听

2.根据url加载不同页面

$.ajax({

url:"/xx/xx.html"

type:"get",

dataType:"html",

}).done(function(data){

$().html(data)

})

posted @ 2018-10-19 15:50  乐逍遥_1992  阅读(247)  评论(0编辑  收藏  举报