日期:2014-05-18  浏览次数:20458 次

[JS Cookie相关]希望高手能指点下错误,或给点思路吧。谢谢各位,顶有分
<html   xmlns= "http://www.w3.org/1999/xhtml "   >
<head   runat= "server ">
        <link   id= "skin "   rel= "stylesheet "   type= "text/css "   />  
        <title> Cookie测试 </title>
          <script   language= "javascript "   type= "text/javascript ">    
                function   SetCookie(name,value,option)
                {
                        var   strCookie=name+ "= "+escape(value);
                        if(option)
                        {
                     
                                if(option.expireDays)
                                {
                                        var   date   =new   Date();
                                        var   now   =option.expireDays*24*3600*1000;
                                        date.setTime(date.getTime()+now);
                                        strCookie+= ";   expires= "+date.toUTCString();
                                }
                                if(option.path)
                                {
                                       
                                        strCookie+= ";   path= "+path;
                                }
                                if(option.domain)
                                {
                                        strCookie+= ";   domain= "+domain;
                                } <