How do I add a body to a POST request in JavaScript using a promise?

后端 未结 0 1283
别那么骄傲
别那么骄傲 2021-02-14 14:50

I have the following function that works fine for a GET request:

function httpGet(options) {
return new Promise(((resolve, reject) => {

  
  const request = h         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题