📅  最后修改于: 2022-03-11 15:01:20.999000             🧑  作者: Mango
代码示例1
// Enable navigation prompt
window.onbeforeunload = function() {
return true;
};
// Remove navigation prompt
window.onbeforeunload = null;