日期选择器错误g.size不是函数

时间:2019-06-13 16:57:49

标签: jquery datepicker

当我尝试将jQuery datepicker添加到我的html页面时,出现以下错误。

bootstrap-datetimepicker.min.js:9 Uncaught TypeError: g.size is not a function
    at c (bootstrap-datetimepicker.min.js:9)
    at HTMLDivElement.<anonymous> (bootstrap-datetimepicker.min.js:9)
    at Function.each (jquery-3.2.1.slim.min.js:2)
    at r.fn.init.each (jquery-3.2.1.slim.min.js:2)
    at r.fn.init.a.fn.datetimepicker (bootstrap-datetimepicker.min.js:9)
    at (index):2427

我的CSS链接

     
<!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<!-- Include Bootstrap Datepicker -->
<link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.min.css"/>

我的JS链接

  
 <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
            ></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"></script>

我正在使用CDN。请告知如何解决。

0 个答案:

没有答案