关闭浏览器时的友情提醒jQuery写法 1 $(window).bind('beforeunload', function () { 2 return '您确定退出该页面吗?'; 3 }); 支持以下浏览器(对号表示支持,叉号表示不支持.):