未设置path时,为以下状态, 导致却换页面的时候cookie失效, document.cookie = "noticebombox=1";
设置path为根目录 document.cookie = "noticebombox=1" + "; path=/";