发布网友 发布时间:2022-05-18 05:31
共2个回答
热心网友 时间:2022-05-18 07:00
<script type="text/javascript"> var cookie = document.cookie; if (cookie.indexOf("flash") == -1) { var expire = new Date(); expire.setTime(expire.getTime() + 3600000); //设置过期时间 document.cookie = "flash;expires="+expire.toGMTString();//key值和过期时间 document.location.href = 'index.html'; } </script>