通过ajax的回调函数,使用js改变地址来实现刷新
$
.post("viewBlog.do", {"blog_id":blog_id
,"title": title
, "content": content
, "nick_name": nick_name
, "read_num": read_num
},function (res
) {
if(res
) {
window
.location
.href
="../jsp/blogContent.jsp";
}
});
转载请注明原文地址: https://mac.8miu.com/read-502415.html