说明:运行服务器
python3 -m http.server
设置Axios
确保在我们自己的scr ipt.js之前包含axios.js ,因为我们的scr ipt.js将依赖axios.js
[removed][removed]
[removed][removed]
载入档案
axios.get('data.txt').then(function(response){
// code to execute when the file finishes loading
// t
<weixin_42116805> 上传 | 大小:26kb