<script language="javascript" type="text/javascript">
function TestAjax(){
$.ajax({
url: "http://www.www.net/", //ajax请求的路径
dataType: "json",
data: "id=150"+"&r=" + Math.random(), //请求的参数
type: "post",
success: function (data) {
alert(data.name); //弹出data对象的name属性值
}
});
}
</script>