通过date在moment()否则会挑电流date
date
moment()
function backDay() { var date = $('input#datetimepicker').val(); var NewDate = moment(date).subtract(1, 'day'); $('input#datetimepicker').val(NewDate._d); }