求教????????????
<script language="javascript">
function newcookie()
{var mydate=new Date()
mydate.setTime(mydate.getTime()+48*60*60*1000)
expires=mydate.toGMTString()
document.cookie=document.form1.t1.vlaue}
function showcookie()
{x=document.cookie
document.form1.t2.value=x}
</script>
<form name="form1">
<input name=t1>
<input type="button" value="创建cookie" onclick="newcookie()">
<input type="button" value="显示cookie" onclick="showcookie()">
<input name=t2>
</form>
请问大侠,我这样设置:mydate=new Date()
mydate.setTime(mydate.getTime()+48*60*60*1000)
expires=mydate.toGMTString()
document.cookie=document.form1.t1保存的日期对不对?