質問

well, I use the function load of jquery to update the some elements of the current page, but before that, I first to use the method ajax to submit a request to server with request method 'DELETE', when the client retrieve the response, if the request successful, the client should to use the method load of jquery to update the current page,

but when to use the load to request, the default request method is DELETE, not GET or POST, i thought may be the some cache affected the request method.

so, how to change the request method of the function load, or other solution to resolve this problem.

役に立ちましたか?

解決

$.ajax() does not affect .load(). The only reason that .load() uses DELETE is that the defaults have been changed, e.g. with $.ajaxSetup() or some filter / event handler.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top