从今天开始,我试着从第八天开始选择,但是无法做到,时间就要结束了。
也许有人能为我的代码指出正确的方向?
<script>
// Find out the current time
var now = new Date();
// Take that current time and round it up so we have an even number on the interval
now.setHours( now.getHours() + Math.round(date.getMinutes()/90) );
window.wpforms_999_8 = window.wpforms_999_8 || {};
window.wpforms_999_8.timepicker = {
forceRoundTime: true,
// Disable any times that have passed already and return the new time selections
minTime: now+8.toLocaleTimeString()
};
new customDatePicker();
} );
</script>发布于 2022-02-03 20:07:12
这就像一种魅力:
function wpf_dev_limit_date_picker() {
?>
<script type="text/javascript">
window.wpforms_3017_9 = window.wpforms_3017_9 || {};
window.wpforms_3017_9.datepicker = {
disableMobile: true,
// Don't allow users to pick before 8th day from today
minDate: new Date().fp_incr(+8),
}
</script>
<?phphttps://stackoverflow.com/questions/70977422
复制相似问题