摘要: 1.环境安装 //nodejs环境 //npm install axios 2.axios发送get请求 const axios = require('axios') const url = "xxx.xxx.xxx"; const headers = {} axios.get(url, {head 阅读全文
posted @ 2024-01-11 14:25 o小兵o 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 1.新建目录demo然后在当前目录下打开cmd窗口执行npm init 一直回车,执行结束该目录下出现一个package.json 2.node环境自行安装,需要依赖如下 * npm add express * npm add nodemon * npm install -g axios --reg 阅读全文
posted @ 2024-01-11 11:40 o小兵o 阅读(54) 评论(0) 推荐(0) 编辑