js如何实现关闭窗口之前调用事件?var EventUtil = {addHandler: function (element, type, handler) {if (element.addEventListener) {element.addEventListener2023-04-18JavaScript150