【发布时间】:2015-08-15 04:47:44
【问题描述】:
我制作了一个仅加载(这是计划)页面内容的 Ajax 脚本。问题是它仍然会重新加载整个布局以及视图。我怎样才能使它在它已经存在时不会重新渲染? 我的阿贾克斯:
$(document).ready(function() {
$('.navigation li a').click(function() {
var toLoad = $(this).attr('href');
$('#content').hide('fast', loadContent);
window.location = $(this).attr('href');
function loadContent() {
$('#content').load(toLoad, '', showNewContent())
}
function showNewContent() {
$('#content').show('normal');
}
return false;
});
});
【问题讨论】:
标签: php jquery ajax zend-framework zend-framework2