测试了很久,jquery .load 参数传递不成功,找不到问题出在哪里。急使用load函数的文件:1.php<html>
<head>
<meta http-equiv="content-type" content="text" charset="gb2312" />
<script type="text/javascript" src="/jquery/jquery.js"></script></script>
</head>
<body> <input type="button" id="send" value="Ajax获取" /> 
<div id="resText">内容替换</div> <script type="text/javascript"><!-- 
$(document).ready(function(){ 
$("#send").click(function(){ 
$("#resText").load("test.php", {name:"andy"}); 
}); 
// --></script> </body> 
</html>code]被加载的文件:test.php
[code=PHP]<?php
$name = $_POST['name'];
echo $name;
$s = $_GET['name'];
echo $name;?>
hello world!