之前搜索会导致页面刷新,现在不会了
可以看到,博客现在点击不同的文章,或者搜索文章,背景图片都不会刷新了
js如下
// 搜索使用pjax
$(document).on('submit', '#search', function (event) {
$.pjax.submit(event, '#pjax_container', {
fragment:'#pjax_container', timeout:6000
})
})
之前搜索会导致页面刷新,现在不会了
可以看到,博客现在点击不同的文章,或者搜索文章,背景图片都不会刷新了
js如下
// 搜索使用pjax
$(document).on('submit', '#search', function (event) {
$.pjax.submit(event, '#pjax_container', {
fragment:'#pjax_container', timeout:6000
})
})
评论测试
评论测试2
评论测试4
评论测试5
评论测试6
评论测试7
评论测试8
评论测试3