查看“MediaWiki:RecentActivities.js”的源代码
来自东方Project线下活动维基
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://thonly.cc/proxy_thmarket/api/v1/events?include_pending=true&utf8=1', true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
let data = JSON.parse(xhr.responseText);
//console.log(data);
data.forEach(ele => {
let name = ele["name"];
let id = ele["id"];
let url = "https://touhou.market/main/events/" + id
});
} else {
console.error('Network response was not ok ' + xhr.statusText);
}
}
};
xhr.send();
000
1:0