P粉4587250402023-08-30 11:53:53
您可以使用sessionStorage
window.addEventListener("DOMContentLoaded", function() { // or $(function() { ... in jQuery const popped = sessionStorage.getItem("popped"); if (popped) return; setTimeout(function() { window.open("#popup_flight_travlDil3", "_self") sessionStorage.setItem("popped",true) }, 1000); })