$(…).datetimepicker is not a function

前端 未结 4 783
情歌与酒
情歌与酒 2020-12-20 16:10

I use webpack and want to use bootstrap-datetimepicker. In my webpack config I use ProvidePlugin to get \"jquery module\".

In my code I get error $(.

4条回答
  •  余生分开走
    2020-12-20 16:43

    you need to check #datetimepicker12 is correct or not it exist to your browser or not.press F12 and press ctrl+F and find id exist. And the other way any error jquery file missing espacially datetime picker js file on your page you get error 404 about that file.put that file at the top all js files hope your problem will be solve

提交回复
热议问题