fetch(config.host+"url",{
     method:"POST",
     mode: 'cors',跨域请求
  headers: {
    'Content-Type': 'application/json'
  },
  body:JSON.stringify({
   'id' : 'XXX'
  })
  }).then(response => response.json()).then(json => {})

相关文章:

  • 2021-09-11
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案