From 54b4f7b3534d130bcaef5c608bcac3e55844ac9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Thu, 13 Jun 2019 19:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E6=94=AF=E6=8C=81Chrome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/script.js b/script.js index 686192fe..81cc2676 100644 --- a/script.js +++ b/script.js @@ -82,6 +82,22 @@ window.onload = function() }, onerror: function(response) { console.error("怪物数据获取错误",response); + try + { + ms = JSON.parse(response.response); + initialize();//初始化 + + var idataQer = getQueryString("data"); + if (idataQer) + { + var idata = JSON.parse(idataQer); + formation = idata; + refreshAll(formation); + } + }catch(e) + { + console.log("尝试解码Chrome错误返回失败。或初始数据解码出错。",e); + } } }); }