Jquery Ajax没有发布

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <script src="jquery-2.1.1.min.js" type="text/javascript"></script>
    <title></title>
</head>
<body>
    <div id="Main">
        <script>
            $('#Main').load('text.txt');
            $.post('run.php','value=5');
        </script> 
    </div>
</body>
</html>

'run.php' code

<?php
  print_r($_POST);
  echo $_POST['value'];
?>

text.txt loads but there is no value being posted in run.php and the variable is undefined also could someone post a working code of the above as an example

Just write the page you want to post data on like:

$.post( "run.php", { id: "55", age: "24" } );

this will post data on run.php

or you can do it with load method like:

$('#Main').load('text.txt?id=55&age=24');

with GET Method.