<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
<script>
// 安装 cnpm install axios --save(-S)
// 文件内导入 import Axios from 'axios'
// mounted函数中查看是否安装好 直接console.log(Axios) 因为数据请求之后可以直接挂载
// axios.get('/user?ID=12345')
// .then(function (response) {
// // handle success
// console.log(response);
// })
// .catch(function (error) {
// // handle error
// console.log(error);
// })
// .then(function () {
// // always executed
// });
// 注意这里的this指向 如果直接用函数来写的话 this指向会有问题 指向window
// 拿到数据之后直接.data
// 把他写成一个方法放在methods中 在mounted中调用
</script>
</html>
Python3Turtle