更新时间:2022-06-12 16:19:30
为什么在Cookie文件夹中看不到用来存放Session的Cookie文件?
开始做,坚持做,重复做<!DOCTYPE html> <html> <head> </head> <body> <script type="text/javascript"> var today=new Date(); var expireDay=new Date(); var msPerMonth=24*60*60*1000*31; expireDay.setTime(today.getTime()+msPerMonth); document.cookie="name=liujl;expires="+expireDay.toGMTString(); document.writeln("cookie已经写到硬盘上了"); document.writeln("内容是:"+document.cookie); document.writeln("过期时间:"+expireDay.toGMTString()); </script> </body> </html>