当我指定 POST 时,为什么此$ajax
调用 GET ? “payload”只是一些有效的json
function configureOptions(token, endpoint, postdata, reqtype){
requestOptions = {
url: apiUrl+ endpoint,
type:'POST',
dataType:'json',
contentType:'application/json',
access_token: token,
data: postdata
}
}
configureOptions(token, '/familynet/postchildren', payload, 'POST')
$.ajax(requestOptions)
.done(successFn)
.fail(errorFn)
.always(completeFn);