<script type="text/javascript"> var unloadPageTip = function(){return "刷新页面有可能会丢失数据";}; window.onbeforeunload = unloadPageTip; </script>