1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-16 23:22:20 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

调整系统后台服务器状态检测接口,网站状态检测功能完成

This commit is contained in:
2022-03-15 01:42:48 +08:00
parent 186f5664e0
commit 39c56e36d4
5 changed files with 62 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
// refer: https://www.cnblogs.com/yzeng/p/8268731.html
function getPageText() {
var str = document.documentElement.innerText;
str += "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; // 数字和英文全部包含进去
str += "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; // 数字和英文全部包含进去,避免因为部分数字或字母造成大量生成字体
var res = [].filter.call(str, (s, i, o) => o.indexOf(s) == i).sort().join('').trim();
return res;
}