ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[参考文档](https://www.jianshu.com/p/df464b26ae58) ~~~ <script src="https://unpkg.com/axios/dist/axios.min.js"></script> ~~~ [TOC] ## 1.get ~~~ //通过给定的ID来发送请求 axios.get(url).then(function (response) { }).catch(function (err) { console.log(err); }); ~~~ ## 2.post ~~~ //post axios.post(url, { firstName: 'Fred', lastName: 'Flintstone' }) .then(function (res) { console.log(res); }) .catch(function (err) { console.log(err); }); ~~~