抽离出公共方法;添加B站热搜爬取代码
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user