在使用python和模板系统的googleappengine上,我使用jqueryajax在用户登录过程中更新div。更新消息可能是“错误的id或密码”、“Welcome someUser”等。但是,在成功登录后,我想刷新整个页面,以便某些用户可以看到一些按钮。下面是Ajax代码,当用户单击“提交”时,只有<;div id="login"> area gets updated. How do I refresh the whole page then?
<script>
$(document).ready(function() {
$('.submitForm').ajaxForm({
success: function(returnData) {
$('#login').html(returnData);
}
});
});
</script>
在document.location.重新加载(对)应该能做到。在
相关问题 更多 >
编程相关推荐