接口1:随机笑话

请求地址:https://autumnfish.cn/api/joke/list

请求方法:get

请求参数:num(笑话条数,数字)

相应内容:随机笑话

axios.get("https://autumnfish.cn/api/joke/list?num=6")

.then(function(res){

   console.log(response);

},function(err){

   console.log(err)

})

 

接口1:用户注册

请求地址:https://autumnfish.cn/api/user/reg

请求方法:post

请求参数:username(用户名,字符串)

相应内容:注册成功或者失败


axios.post("https://autumnfish.cn/api/user/reg",{username:"小学生搬砖选手"})

.then(function(res){

  console.log(response);

},function(err){  

     console.log(err)

})

  

 

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2021-07-06
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案