现在默认日期是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,
;
}
}
}
答案 0 :(得分:0)
您可以在此脚本中直接将今天设置为默认值
$("#calendar").datepicker().datepicker("setDate", new Date());
答案 1 :(得分:0)
$('#calendar').fullCalendar({
defaultDate: new Date()
});
或
$('#calendar').fullCalendar({
defaultDate: moment('2014-09-01'),
...
});