Programming/jquery

jquery ajax delete가 없다?

구차니 2022. 9. 16. 14:40

ajax에서 DELETE로 하면 된다고 해서 해보는데 크롬에서 보면 자꾸 POST로 보내는 것 같기도?

아무튼.. 다시 해보니 되긴한데 머가 잘못되었던 걸까...

 

jquery 문서에는 1.9.0에 추가된 기능으로 POST GET PUT 과 같은 방법을 입력한다고 되어있는데

왜 DELETE가 언급이 안되어 있는걸까?

 

method (default: 'GET')
Type: String
The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)

type (default: 'GET')
Type: String
An alias for method. You should use type if you're using versions of jQuery prior to 1.9.0.

 [링크 : https://api.jquery.com/jquery.ajax/]