һ
 ¼ע

QQ¼

ֻһٿʼ

̳ WEBҳǰ뿪 ǰ̨ű

ͻ˼ס빦

[]
13931 happy175 2013-10-30 10:07:16
| ʾȫ¥
1F

ϵ½עᣬύѣø๦ܣϴزIJޣ

Ҫ ¼ ſػ鿴ûʺţ¼ע  

x
  1. //cookie
  2. function setCookie(name, value, day) {
  3.     var Days = day;
  4.     var exp = new Date();
  5.     exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
  6.     document.cookie = name + "=" + escape(value) + ";path=/;expires=" + exp.toGMTString();
  7. }

  8. //ȡcookies
  9. function getCookie(name) {
  10.     var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");

  11.     if (arr = document.cookie.match(reg))

  12.         return (arr[2]);
  13.     else
  14.         return null;
  15. }

  16. //ɾcookies
  17. function delCookie(name) {
  18.     var exp = new Date();
  19.     exp.setTime(exp.getTime() - 1);
  20.     var cval = getCookie(name);
  21.     if (cval != null)
  22.         document.cookie = name + "=" + cval + ";path=/;expires=" + exp.toGMTString();
  23. }
ƴ
ͻ,
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ
2014-4-6 22:29:29
| ʾȫ¥
2F
̫ˣлл
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
б

ֹ

̳¡ͼƬѷϴվԭתԻ,µİȨԭ
վַİȨ֪ͨǵĹԱ,Ա(Email:admin@websjy.com)ʱȡȨɾ
ܾκκʽڱ̳л񹲺͹ִ!

QQ| 42011102000510|Archiver|ֻ|Դ ( ICP14013341-1

GMT+8, 2020-7-14 20:38

ٻظ ض б