$.post( |
'http://www.phpernote.com/ajax.php' , |
{Action: "post" ,Name: "lulu" }, |
function (data,textStatus){ |
//data可以是xmlDoc,jsonObj,html,text,等等. |
//this;//这个Ajax请求的选项配置信息,请参考jQuery.get()说到的this |
alert(data.result); |
}, |
"json" //这里设置了请求的返回格式为"json" |
); |