bootstrap-datetimepicker
2022-08-20 19:52:23    0    0    0
junjie
#日期时间选择器 ##后面的时间不能大于前面的时间 ``` $("#startDate").datetimepicker({ format: "yyyy-mm-dd hh:ii", autoclose: true, todayBtn: true, pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"), minuteStep: 10 }).on('change',function(ev){ var startDate = $('#startDate').val(); $("#returnDate").datetimepicker('setStartDate',startDate); $("#startDate").datetimepicker('hide'); }); $("#returnDate").datetimepicker({ format: "yyyy-mm-dd hh:ii", autoclose: true, todayBtn: true, pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"), minuteStep: 10 }).on('change',function(ev){ var returnDate = $("#returnDate").val(); $("#startDate").datetimepicker('setReturnDate',returnDate); $("#returnDate").datetimepicker('hide'); }); ``` ———————————————— 版权声明:本文为CSDN博主「kevin_zhuzj」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/zhuzj12345/article/details/55505100 --- https://www.bootcss.com/p/bootstrap-datetimepicker/index.htm

上一篇: 用node.js实现一个简单的聊天室

下一篇: 什么是CMMI

Table of content