diff --git a/js/view.js b/js/view.js index 80bcd07..0f58aff 100644 --- a/js/view.js +++ b/js/view.js @@ -1,5 +1,11 @@ (function () { var index = getQueryString('i'); + if (index == '') { + message.alert('发生错误', '缺少参数,请检查URL是否正确', function () { + window.location.replace('/'); + }); + return; + } $.ajax({ type: "GET", url: "content.json?timestamp=" + (new Date()).valueOf(),