热爱生活的小胖胖的博客存取cookie //debugger; //每次发消息打开聊天窗口时候把chatid和chatcode存入到cookie中 var pd; if (document.cookie.length>0){ pd=document.cookie.indexOf(chatId+"="); ...
-Fujiyama的博客Cookie存值与取值 1.cookie存值 / 取值方法 function setCookie(name,value){ document.cookie = name + "=" +escape(value) +";path=/"; } function getCookie(name){ var arr,reg = new RegExp("(^|)" +...