是否有任何方法可以通过使用reactjs、fetch或axios或任何其他方式在GET请求中传递带有参数的body

是否有任何方法可以通过使用reactjs、fetch或axios或任何其他方式在GET请求中传递带有参数的body,reactjs,Reactjs,获取(“…/search”{ //添加方法类型 方法:“获取” // Adding body or contents to send data: JSON.stringify(data), // Adding headers to the request headers: headers }) .then(function(response) { callback(response); }) .catch(function(err) { callba

获取(“…/search”{ //添加方法类型 方法:“获取”

  // Adding body or contents to send
  data: JSON.stringify(data),

  // Adding headers to the request
  headers: headers
})
  .then(function(response) {
    callback(response);
  })
  .catch(function(err) {
    callback(err);
  });