add neterror alert
This commit is contained in:
parent
5aba679b90
commit
946e989465
@ -32,7 +32,13 @@ $.ajax({
|
|||||||
url: 'content/html/' + response[lastIndex]['date'] + '.html',
|
url: 'content/html/' + response[lastIndex]['date'] + '.html',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
appendContent(res);
|
appendContent(res);
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
message.alert('出错了!','网络连接出错了,请稍后再试');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
message.alert('出错了!','网络连接出错了,请稍后再试');
|
||||||
}
|
}
|
||||||
});
|
});
|
@ -18,8 +18,14 @@
|
|||||||
url: 'content/html/' + response[index]['date'] + '.html',
|
url: 'content/html/' + response[index]['date'] + '.html',
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
appendContent(res);
|
appendContent(res);
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
message.alert('出错了!','网络连接出错了,请稍后再试');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
error:function(){
|
||||||
|
message.alert('出错了!','网络连接出错了,请稍后再试');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user