添加参数i为空的逻辑
This commit is contained in:
parent
db6940f715
commit
c47209899d
@ -1,5 +1,11 @@
|
|||||||
(function () {
|
(function () {
|
||||||
var index = getQueryString('i');
|
var index = getQueryString('i');
|
||||||
|
if (index == '') {
|
||||||
|
message.alert('发生错误', '缺少参数,请检查URL是否正确', function () {
|
||||||
|
window.location.replace('/');
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "content.json?timestamp=" + (new Date()).valueOf(),
|
url: "content.json?timestamp=" + (new Date()).valueOf(),
|
||||||
|
Loading…
Reference in New Issue
Block a user