![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
YY小怪兽
干饭了 干饭了
展开
-
PHP获得axios的GET和POST请求
GET请求 axios.get("http://127.0.0.1/jQuery/Ajax/41.php?act=add&age=34") .then(function (res) { console.log(res.data); }) .catch(function (e) { console.log(e); }); PHP获得GET参数 $act=$_GET['act原创 2021-11-09 18:12:03 · 1094 阅读 · 0 评论 -
使用axios通过PHP上传图片
axios $('.inp_file').change(function(e){ let $file = e.target.files[0]; let $form = new FormData(); $form.append("file", $file); console.log($form.get("file")); let $config = { headers: {'Content-Type': 'multipart/form-data'原创 2021-11-09 17:50:02 · 267 阅读 · 0 评论