我如何在jquery中加载页面后发送数据

How can I send post data after loading a page with jQuery?

For example

    $( "#target" ).click(function() {
      $('#thetag').load(page.php, function(){

  $.ajax({
  type: "POST",
  url: "page.php",
  data: {data: "hi world"},
  success: function(result) {
     console.log('good');
      }
});
    });
    });

</div id="thetag">
page.php

<?php echo $_POST['data'] ?> ==== 'hi world'
</div>

I need to load the page.php file after the click on #target and, at the same time, send that data via ajax post; showing the post data in #thetag

Just send the data with your load() request. Without more information it doesn't seem to make sense to make another request to same url

$('#thetag').load(page.php, {data: "hi world"}}