You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

script.js 632 B

12345678910111213141516171819202122232425
  1. var mdata = {ja:null,en:null};
  2. window.onload = function()
  3. {
  4. GM_xmlhttpRequest({
  5. method: "GET",
  6. url:"monsters-info/ja.json",
  7. onload: function(response) {
  8. mdata.ja = JSON.parse(response.response);
  9. GM_xmlhttpRequest({
  10. method: "GET",
  11. url:"monsters-info/en.json",
  12. onload: function(response) {
  13. mdata.en = JSON.parse(response.response);
  14. //buildHTML(mdata);
  15. },
  16. onerror: function(response) {
  17. console.error("英文怪物数据获取错误",response);
  18. }
  19. })
  20. },
  21. onerror: function(response) {
  22. console.error("日文怪物数据获取错误",response);
  23. }
  24. })
  25. }

智龙迷城队伍图制作工具

Contributors (1)