react中使用fetchjsonp获取数据

fetchjsonp只能发送get请求

  componentDidMount(){
    fetchjsonp("http://jsonplaceholder.typicode.com/posts/1").then(res=>{
     return res.json()
      
    }).then(result=>{
      console.log(result);
      
    }).catch(err=>{
      console.log(err);
      
    })
  }