ajax 异步请求返回只刷新一次页面

success:function (res) {
if (res == "ok") {
// $('#dg').bootstrapTable(('refresh'));
if (location.href.indexOf("#reloaded") == -1) {
location.href = location.href + "#reloaded";
location.reload();
}

}
}
posted @ 2018-11-07 22:55  吖水的程序路  阅读(540)  评论(0编辑  收藏  举报