就像这样...
js代码:
<script type="text/javascript">
$('#starttime').datetimepicker();
</script>
thylmeleaf引用:
<script type="text/javascript" th:src="@{js/jquery-3.3.1.js}"></script>
<script type="text/javascript" th:src="@{js/bootstrap.js}"></script>
<script type="text/javascript" th:src="@{js/jquery.datetimepicker.js}"></script>
<link rel="stylesheet" type="text/css" th:href="@{css/bootstrap.css}">
F12没报错,引用没有问题
求大神告知是什么问题