1、write a json file base on website(在网站上写一个json文件)
json文件网址:https://raw.githubusercontent.com/DJOSIMON/DJ/master/Hero.json
2、upload to github(or server)(上传至github(或服务器))
上传至github。方法:https://blog.csdn.net/hlxx55/article/details/80906418
上传结果:
3、obtain json file through XMLhttprequest API,put it into html(通过XMLhttprequest API获取json文件,放入html)
网页效果图: