开发者

What is the alternative to .ajax in jQuery?

开发者 https://www.devze.com 2023-02-13 10:52 出处:网络
In other words, I want to do a regular, non-AJAX request, but using Javascript. I\'m researching this because I have to enable 开发者_开发知识库the back button in my site.Huh? There is no \"alternativ

In other words, I want to do a regular, non-AJAX request, but using Javascript. I'm researching this because I have to enable 开发者_开发知识库the back button in my site.


Huh? There is no "alternative". XMLHttpRequest is the only way of doing an HTTP request inside the page to my knowledge. If you want a synchronous request then do async:false.

You can do location.href, history.pushState or window.open but those aren't the same. You can also use jQuery bbq if you want back/forward.

0

精彩评论

暂无评论...
验证码 换一张
取 消