<p>本页面展示了原神玩家 UID 为 214634447 的抽卡记录,包含角色和武器名称、类型、获取时间等信息。数据来自 <'提瓦特小助手'> v3.0.0,记录时间截止 2023-06-28 13:13:44。</p><ul id='jsonList'></ul><script>
const xhr = new XMLHttpRequest();
xhr.open('GET', 'http://127.0.0.1:8080/抽卡记录.json');
xhr.onreadystatechange = function() {
  if (xhr.readyState === 4 && xhr.status === 200) {
    const json = JSON.parse(xhr.responseText);
    const jsonList = document.getElementById('jsonList');
<pre><code>json.list.forEach(item =&gt; {
  const li = document.createElement('li');
  li.textContent = `${item.name} - ${item.item_type}`;
  jsonList.appendChild(li);
});
</code></pre>
<p>}
};
xhr.send();
</script></p>

原文地址: https://www.cveoy.top/t/topic/qnOz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录