摘要:
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Vue 测试实例 - 菜鸟教程(runoob.com)</title> 6 <script src="./js/vue.min.js"></script> 7 阅读全文
摘要:
代码: 1 // 封装 axios 2 let axios = { 3 get(url){ 4 return new Promise((resolve,reject) =>{ 5 $.get(url, data =>{ 6 resolve(data) 7 }) 8 }) 9 } 10 }; 11 / 阅读全文