datemaker

授权协议 未知
开发语言
所属分类 jQuery 插件、 其他jQuery插件
软件类型 开源软件
地区 不详
投 递 者 公西宏毅
操作系统 未知
开源组织
适用人群 未知
 软件概览

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') });

相关阅读

相关文章

相关问答

相关文档