$.post call is not happening in safari

后端 未结 2 1990
心在旅途
心在旅途 2020-12-10 18:31

I am facing strange issue. when closing complete safari browser, I need to call one function using jquery post. but this is not calling when close safari browser. But beauty

2条回答
  •  旧巷少年郎
    2020-12-10 19:14

    According to Mozilla MDC, window.onbeforeunload won't return anything in Safari, so modify your code according to the linked example above.

    There's another thread here on SO about this. Hope it helps.

提交回复
热议问题