做个笔记,以防忘记
遇到一个奇葩问题(书写规范不会遇到此问题
)
问题描述:
$(document).ready(function(){
var strCookie=document.cookie;
username="1";
if (strCookie) {
cookieVariables = strCookie.split(";");
for (i = 0; i < cookieVariables.length; i++) {
cookieName = cookieVariables[i].split("=");
if (cookieName[0] === "username"){