判斷當前頁面是否修改內容,並在離開頁面的時候給出提示

let _this=this; window.onbeforeunload = function() { let nowOrderVo=JSON.stringify(_this.orderVo); if (_this.copyOrderVo!==nowOrderVo) { try { return "當前修改還沒有保存,是否離開?"; } catch (err)
相關文章
相關標籤/搜索