javascript memory leak

后端 未结 4 1261
名媛妹妹
名媛妹妹 2020-12-28 23:44

I have a some javascript (used with google maps api) that I am testing on IE and Chrome and noticed memory leak symptoms in IE only: when I refresh the page continuously, th

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 00:24

    You need to also execute GUnload before leaving the page. Simply add an "unload" event:

    
    

    Read more about this leak at the Google Maps API

提交回复
热议问题