如何在离开我的网站时离线设置用户状态
答
$(window).bind('beforeunload', function(){
// Do your AJAX call here to set it to offline
});