add neterror alert

This commit is contained in:
wolegca 2019-09-21 16:17:12 +08:00
parent 5aba679b90
commit 946e989465
2 changed files with 12 additions and 0 deletions

View File

@ -32,7 +32,13 @@ $.ajax({
url: 'content/html/' + response[lastIndex]['date'] + '.html',
success: function (res) {
appendContent(res);
},
error:function(){
message.alert('出错了!','网络连接出错了,请稍后再试');
}
});
},
error:function(){
message.alert('出错了!','网络连接出错了,请稍后再试');
}
});

View File

@ -18,8 +18,14 @@
url: 'content/html/' + response[index]['date'] + '.html',
success: function (res) {
appendContent(res);
},
error:function(){
message.alert('出错了!','网络连接出错了,请稍后再试');
}
});
},
error:function(){
message.alert('出错了!','网络连接出错了,请稍后再试');
}
});
})();