怎么避免刷新调用onunload?如题,而且如果使用onbeforeunload的时候弹出confirm,却不行,不知道为什么 [解决办法]onbeforeunload只能调用系统的才能阻止执行onunload事件chrome,firefox不会执行confirm