在开发在线客服系统的时候,我需要在客服关闭后台页面的时候,触发一下接口记录

$(window).bind('beforeunload',function(){
            //操作
            return 1
});        

更多推荐