如何在FullCalendar上将当天(今天)设置为默认日期?

时间:2017-12-21 12:08:46

标签: jquery

现在默认日期是2017-12-12 ...

class test (
  Hash $testhash = lookup('test::hash', "merge" => 'hash'}),
){

  $testhash.each |String $key, Hash $value = {}| {
    user { 
      default:
        ensure     => present,
        name       => 'username',
        password   => 'userpassword',
        groups     => ['usergroups'],
        managehome => false,
      ;
      $key:
        * => $value,
      ;
    }
  }
}

2 个答案:

答案 0 :(得分:0)

您可以在此脚本中直接将今天设置为默认值

$("#calendar").datepicker().datepicker("setDate", new Date());

答案 1 :(得分:0)

$('#calendar').fullCalendar({
    defaultDate: new Date()
});

$('#calendar').fullCalendar({
    defaultDate: moment('2014-09-01'),
    ...
});