$.ajax({
url :
""
, 請求的Url
data : { }, 參數Json格式
dataType :
"json"
, 請求的返回類型 這裏爲json
type :
"post"
, 提交方式
cache :
false
, 是否異步提交
success :
function
(result)
{
alert(
'回調函數'
);
},
error:
function
(XMLHttpRequest, textStatus, errorThrown) {
alert(
'錯誤處理'
);
}
});