jquery简单实用小标签(设置时间)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34495753/article/details/82144254

http://www.jq22.com/jquery-info16355           输入后回车生成单个小标签

1.0.9版本日期格式设置

onclick="layui.laydate({elem: this, min: '1900-01-01 23:59:59',format: 'YYYY-MM-DD hh:mm:ss',})"

options是一个对象,它包含了以下key: '默认值'
{
  elem: '#id', //需显示日期的元素选择器
  event: 'click', //触发事件
  format: 'YYYY-MM-DD hh:mm:ss', //日期格式
  istime: false, //是否开启时间选择
  isclear: true, //是否显示清空
  istoday: true, //是否显示今天
  issure: true, 是否显示确认
  festival: true //是否显示节日
  min: '1900-01-01 00:00:00', //最小日期
  max: '2099-12-31 23:59:59', //最大日期
  start: '2014-6-15 23:00:00',  //开始日期
  fixed: false, //是否固定在可视区域
  zIndex: 99999999, //css z-index
  choose: function(dates){ //选择好日期的回调
  }
}

猜你喜欢

转载自blog.csdn.net/qq_34495753/article/details/82144254
今日推荐