js代码:
$('.datetimepicker_mask').datetimepicker({
todayButton:true,
mask:'9999/19/39 29:59'
});
$.datetimepicker.setLocale('ch');html代码:
<input class="form-control date-control datetimepicker_mask" type="text" ng-model="time" id="datetimepicker_mask"/>
现在是这个格式:年-月-日 时:分我想设置为这个格式:年-月-日 时:分:秒 应该怎么改?求请教
forEachAncestorOf(dateInputElem,
function(ancestorNode) {
if (window.getComputedStyle(ancestorNode).getPropertyValue('position') === 'fixed') {
//这里报错
dateInputHasFixedAncestor = true;
return false;
}
});datetimepicker.full.js文件的2557行的这句:
if (window.getComputedStyle(ancestorNode).getPropertyValue('position') === 'fixed')报这个错:
Uncaught TypeError: Failed to execute 'getComputedStyle'on 'Window': parameter 1 is not of type 'Element'.
要怎么解决这个错误??
2541行
datepicker.parent().outerWidth(true)
改成
datepicker.outerWidth(true)
后手机页面日历水平显示位置正确