title: What is the difference between fetch and jquery ajax?
body: <p>I want to send a post request through fetch, but it does not work.</p>
  
  <p>But if I do it through jQuery ajax, it succeeds.</p>
  
  <p>I want to know the difference of the two way and if there is anything  wrong in my use of fetch here:</p>
  
  <pre><code>fetch('http://localhost:8888/news',{
      method:"post",
      data:"code=7&amp;a=8&amp;b=9"
  }).then(function(data){
       data.json().then(function (json) {
  }
  </code></pre>