title: AJAX returns null?
body: <p>I am trying to use ajax to get information from my server. the page xxx.php is a page with only 123 written on it. However, when I want to return the content of that page, it returns null.</p>
  
  <pre><code>function myFunct(){
      $.ajax({
          url: 'xxx.php',
          success: function(data) {
              return data;
          }
      });
  }
  
  var data = myFunct(); //nothing.
  </code></pre>