是否可以在不刷新页面的情况下加载所有带有“ajax”类的链接?应更改完整的正文内容、页面标题和 url,以便可以将其添加为书签。
最佳答案
$('a.blah').click(function(e){
e.preventDefault;
$.get('page.html', function(data){
$('body').html(data);
});
});
这可能是最简单的方法,将 blah 替换为您的类,将 page.html 替换为您的页面。
关于jquery - 使用 jquery Ajaxify 链接特定类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6857632/