1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

抽离出公共方法;添加B站热搜爬取代码

This commit is contained in:
2022-07-28 22:35:07 +08:00
parent a76c39b030
commit cf28f475e3
5 changed files with 184 additions and 55 deletions

View File

@@ -227,7 +227,7 @@
function getData() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "../data/latest.json?t=" + Date.now(), true);
xhr.open("GET", "../data/weibo/latest.json?t=" + Date.now(), true);
xhr.send();
xhr.onreadystatechange = function () {
if (xhr.readyState !== 4) return;