1.属性初始化设置 $('#beginDate').datetimepicker({ format: 'yyyy-mm-dd', language: 'zh-CN', weekStart: 1, todayBtn: false, autoclose: true, todayHighlight: 1, startView: 2, minView: 2, forceParse: 0, startDate:new Date() }); 2.通过function函数计算日期之后赋值 $('#beginD