Ajax vs. navigator.sendBeacon (), can be used to transfer small amounts of data asynchronously to a Web server via HTTP.

Navigator.sendBeacon () - Web API Interface Reference | the MDN
https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/sendBeacon

$ .ajax (url, [settings] ) | jQuery API 3.2 Chinese documents | jQuery API online manual
http://jquery.cuishifeng.cn/jQuery.Ajax.html

Guess you like

Origin www.cnblogs.com/rgqancy/p/12168436.html