Ajax vs. navigator.sendBeacon() ,可用于通过HTTP将少量数据异步传输到Web服务器。

Navigator.sendBeacon() - Web API 接口参考 | MDN
https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/sendBeacon

$.ajax(url,[settings]) | jQuery API 3.2 中文文档 | jQuery API 在线手册
http://jquery.cuishifeng.cn/jQuery.Ajax.html