在控制台中找不到数据值

 var name = this.value ;
 alert(name);
 $.ajax({
type: "POST",
url: "<?php echo get_site_url(); ?>/wp-content/themes/dt-the7/home.php",
data :name,
success: function(result){
    console.log(result);


    }

I am getting the alert value correctly but inside the ajax call i am not getting the output.

Seems your ajax request unsuccessfull every time. Try to add errors handling:

var name = this.value ;
alert(name);
$.ajax({
  type: "POST",
   url: "<?php echo get_site_url(); ?>/wp-content/themes/dt-the7/home.php",
   data :name,
   success: function(result){
      console.log(result);
   }
  error: function (xhr, ajaxOptions, thrownError) {
    console.log(xhr.status);
    console.log(thrownError);
  }