datemaker

未知
未知
2008-09-19

jquery.datamaker.js provides an easy way to create Javascript Date objects using simple time interval indicators. Use datamaker to create Data objects to use with jQuery cookie plugin.

Time interval indicators are like those in Perl CGI::Cookie: '+1M,' '-10d,' etc., and Rails ActiveSupport-like time indicators: '3.days.ago.' A few named time indicators: 'midnight' and 'now.'
Note that '3.days.ago' is a string, not a method on an integer.

Integrates with jQuery cookie plugin

$.cookie('cookie_name', 'cookie_value', { expires: $.datemaker('+1h') });

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

暂无博客

返回顶部
顶部