发布于 2016-12-13 09:14:44 | 174 次阅读 | 评论: 0 | 来源: 网友投递
			ExtJS Javascript库
ExtJS是一种主要用于创建前端用户界面,是一个基本与后台技术无关的前端ajax框架。		
Ext.state.CookieProvider = function(config){ 
Ext.state.CookieProvider.superclass.constructor.call(this); 
this.path = "/"; 
this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days 
this.domain = null; 
this.secure = false; 
Ext.apply(this, config); 
this.state = this.readCookies(); 
}; 
Ext.state.CookieProvider = function(config){ 
Ext.state.CookieProvider.superclass.constructor.call(this); 
this.path = "/"; 
this.expires = new Date(new Date().getTime()+(1000*60*60*24*7)); //7 days 
this.domain = null; 
this.secure = false; 
Ext.apply(this, config); 
this.state = this.readCookies(); 
}; 
this.expires: new Date(new Date().getTime()+(1000*60*60*24*365)), //一年 
this.expires: new Date(new Date().getTime()+(1000*60*60*24*365)), //一年 
Ext.state.Manager.setProvider( 
new Ext.state.CookieProvider({ 
expires: new Date(new Date().getTime()+(1000*60*60*24*365)), //一年 
}));