<script>window.onbeforeunload=function(e){ return (e||window.event).returnValue='确认离开?!';}</script>
javascript
这篇文档对您是否有帮助?