主要是借助 window.onbeforeunload 来实现:. JS写法: window.onbeforeunload = function() { return '修改尚未保存,确定放弃吗?
確定! 回上一頁