(1)本周做了什么,花在学习上多长时间,花在代码时间上多长时间,花在解决问题用了多长时间。
本周学习了vue的使用
axios({
method:'post',
url:'http://localhost:8080/article/add',
data:article
}).then(result=>{
//成功的回调
//result代表服务器相应的所有的数据,包含了响应头,响应体 result.data代表的是接口响应的核心数据
console.log(result.data);
}).catch(err=>{
console.log(err);
});
//别名的方式发送请求
axios.get('http://localhost:8080/article/getAll').then(result=>{
//成功的回调
//result代表服务器相应的所有的数据,包含了响应头,响应体 result.data代表的是接口响应的核心数据
console.log(result.data);
}).catch(err=>{
console.log(err);
});
(2)下周准备做什么?
下周准备学习springboot
浙公网安备 33010602011771号