From 1e967543bc167c0e2be161959feb37810883cd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Fri, 20 Aug 2021 18:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E5=B1=82=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser-compatibility.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/browser-compatibility.js b/browser-compatibility.js index 89cd62b5..97c8b8dd 100644 --- a/browser-compatibility.js +++ b/browser-compatibility.js @@ -23,8 +23,8 @@ if (needUpdateBrowser) navigator.userAgent; } })(navigator.userAgent); - -alert(`πŸ™ζ΅θ§ˆε™¨ε†…ζ Έη‰ˆζœ¬ε€ͺ老 | Browser kernel is too old + +let alertStr = `πŸ™ζ΅θ§ˆε™¨ε†…ζ Έη‰ˆζœ¬ε€ͺ老 | Browser kernel is too old ζ‚¨ηš„ζ΅θ§ˆε™¨η‰ˆζœ¬δΈΊ | Your browser is: ${browserVersion} @@ -32,5 +32,7 @@ ${browserVersion} Your browser does not support Optional chaining (?.) and Nullish coalescing operator (??) used in this program. θ―·ζ›΄ζ–°ζ‚¨ηš„ζ΅θ§ˆε™¨εˆ° Firefox(火狐) β‰₯ 74 ζˆ– Chrome(谷歌) β‰₯ 80 ζˆ– Safari(θ‹Ήζžœ) β‰₯ 13.1。 -Please update your browser to Firefox β‰₯ 74 or Chrome β‰₯ 80 or Safari β‰₯ 13.1.`); +Please update your browser to Firefox β‰₯ 74 or Chrome β‰₯ 80 or Safari β‰₯ 13.1.`; +alert(alertStr); +document.write(alertStr.replace(/\n/g,'
')); } \ No newline at end of file