我已附加了所有必需的库以使用日期时间选择器,但仍然无法正常工作。检查这个小提琴
<div class='input-group date' id='from_time'>
<input type='text' class="form-control input-lg transparent-input" name="to_time" placeholder="To Time" required>
<span class="input-group-addon"><span class="glyphicon glyphicon-time"></span></span>
</div>
$(document).ready(function(){
$('#from_time').datetimepicker();
});
它被阻止,因为您在HTTPS连接中使用HTTP引用了另一个域。打开浏览器控制台,您将看到。
使用https
URL,它将起作用。它在这里工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句