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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 07:35:20

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

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