jQuery & $(window).on('beforeunload') - Save data to database before the window closes?

后端 未结 0 1380
天涯浪人
天涯浪人 2020-11-22 17:01

How can I save data to database before the window closes? The following does not work:

$(window).on(\'beforeunload\', function() {
    $("#save_data"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题