In IE, close the window is bug that Window.onloyd does not execute.

xiaoxiao2021-03-06  18

Use

Window.οnunlοad = function () {...},

This function is called if the window is refreshed or browsing other pages.

If the window is turned off, the function will not be called.

Can't be clear about why this will be like this.

Use window.attachevent ('onunload', function () {...}); you can solve the problem.

REGARDS.

Lose network

转载请注明原文地址:https://www.9cbs.com/read-48473.html

New Post(0)