strCookie += (path) ? " ; path=" + path : "";
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 00:04:34
x)+.)rLUжU(H,TWPRV m+%%k"}uِcӎ%Ϧ}6c ^|:/E%OycTXgS7<];eOvlyw2Ȃ3^?ljdztnhUw-xںi;$ف< x
strCookie += (path) ? " ; path=" + path : "";
strCookie += (path) ? " ; path=" + path : "";
strCookie += (path) ? " ; path=" + path : "";
判断是否设置Cookie路径.
strCookie作为Cookie设置参数字符串,当path变量有效时,将path参数加入到strCookie中.