ick(function(){ let gain = $('#check').val(); if(gain === pass){ let date = new Date(); date.setTime(date.getTime()+(60*60*1000)); let expires = "expires="+date.toGMTString(); document.cookie = "iosdesk.com_wechat_key=wechat_value; "+expires; window.open(link); }else{ layer.msg('密码错误'); } }); function getCookie(cname){ var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i