strCookie += (path) ? " ; path=" + path : "";

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 14:31:33
strCookie+=(path)?";path="+path:"";strCookie+=(path)?";path="+path:"";strCookie+=(path)?";path="+pat

strCookie += (path) ? " ; path=" + path : "";
strCookie += (path) ? " ; path=" + path : "";

strCookie += (path) ? " ; path=" + path : "";
判断是否设置Cookie路径.
strCookie作为Cookie设置参数字符串,当path变量有效时,将path参数加入到strCookie中.