1. 首页
  2. 编程语言
  3. Javascript
  4. vue基础知识–axios合并请求和slot

vue基础知识–axios合并请求和slot

上传者: 2020-11-20 19:52:22上传 PDF文件 66.03KB 热度 10次
一、axios合并请求 export default { data(){ return {} }, created(){ function getMsg(res1,res2){ console.log(res1) console.log(res2) } this.$axios.all([ this,axios.post('URL','key=value'), this.axios.get('URL') ]) .then(this.$axios.spread(getMsg
下载地址
用户评论