52,796
社区成员
发帖
与我相关
我的任务
分享
<script language="JavaScript" type="text/JavaScript">
function testpost() {
var url='http://www.b.com/select.asp';
var pars= 'HomeCity='+encodeURI('北京')';
var myAjax = new Ajax.Request( url, { method:'post',
//requestHeader: ['Content-Type','application/x-www-form-urlencoded'], //---------------- C
parameters:pars,
onComplete:showResponse
}
);
}
function showResponse(prototype){//回调函数
var txtA = prototype.responseText;
alert(txtA);
}
</script>