2751
Written by xlingfairy
Thursday, 05 March 2009 18:19
原来写过一个 cookie 操作的应用,不过,存在很大问题。
首先,每个 cookie 可以单独设置 expires, path, domain, secure, 但是我以前写的那个,只能对所有 cookie 设置同样的 expires, path, domain, scure。
其次,删除 cookie ,只能整个删除,不能删除哪个指定的 cookie.
现在重新写了一个:
JObj.JCookie = {};
(function($){
$.getExpires = function(y,m,d,h,i,s,ms){
var date = new Date();
y = isNaN(y) ? date.getFullYear() : y;
m = isNaN(m) ? date.getMonth() : m - 1;
d = isNaN(d) ? date.getDate() : d;
Last Updated ( Wednesday, 13 May 2009 16:59 )