Why is jQuery missing $ .put () and $ .delete ()?

We had an internal discussion here when we were working on jQuery with built-in support for $ .get () and $ .post (), but not for $ .put () and $ .delete ().

Some believe its js library size is smaller. Others believe that this is not a feature that is often requested, so plug-in developers have to do it.

What are some thoughts from the SO community?

+4
source share
2 answers

Where did you stay? $.options() ? $.copy() ? $.mkactivity() ?

There are too many potential HTTP verbs to create a usability method for each of them. Webapps have not been too worried about PUT and DELETE in the past, so they are often not used. The convenience gain is quite small; there really is no problem using $.ajax() .

+5
source

I don't like pulling a percentage out of my ass, but I think 90-95% of front-end developers will never use $.delete or $.put .

+2
source

All Articles