我正在使用此DateTimePicker。我尝试了下面的代码,但它没有工作
HTML:
browser.actions().mouseMove(
foundElement, newLocationX,
)
.click()
.perform();
JS:
<input type="text" id="txtDt">
<br>
<br>
<input type="text" id="txtDt2">
我在 $('#txtDt').datetimepicker({
format: 'd/m/Y h:i A',
formatTime: 'h:i A',
validateOnBlur: false,
defaultTime: '24:00',
onSelectDate: function ($ct, $i) {
var sDate = $i.val().substring(0, 10);
$('#txtDt2').datetimepicker('setOptions', { minDate: sDate });
}
});
$('#txtDt2').datetimepicker({
format: 'd/m/Y h:i A',
formatTime: 'h:i A',
validateOnBlur: false,
defaultTime: '23:59'
});
函数中出现datetimepicker is not a function
错误。怎么解决?