search

Home  >  Q&A  >  body text

javascript - How to set up jquery or js to monitor web page refresh and browser closing

How to set up jquery or js to monitor web page refresh and browser closing

阿神阿神2749 days ago547

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-16 13:40:03

    window.onbeforeunload = function () {

    //你的代码

    }

    reply
    0
  • Cancelreply