除了 GET、POST、PUT 之外,我还可以调用 XmlHttpRequest 中的任何方法吗?
*More Information: *
I have Controller named equal =
AccountsController
In Controller I have method named equal
Connnect(Account acc)
block 引用> block 引用> block 引用>I want call this method from that controller How ?
例如:
var xhr = new XmlHttpRequest(); xhr.open("CONNECT", "www.any.link/api/Accounts", true);
最佳答案
您还可以使用HEAD
、DELETE
、OPTIONS
和CONNECT
。
欲了解更多信息,您可以访问此页面:
http://www.w3schools.com/tags/ref_httpmethods.asp
也许您会发现这篇文章有用:
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?
关于javascript - 我可以调用 XmlHttpRequest 中的任何方法吗?不仅是 GET、POST、PUT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41041594/