bootstrapDialog出现以下错误。我只是在初始化bootStrapDialog,即BootstrapDialog.alert('我要香蕉!');
有人可以帮助我解决问题吗?
浏览器将引发以下错误:
Uncaught TypeError: element.querySelector is not a function
at n.Modal (modal.js:80)
at new n (bootstrap-dialog.min.js:1)
at o.realize (bootstrap-dialog.min.js:1)
at open (bootstrap-dialog.min.js:1)
at Function.o.alert (bootstrap-dialog.min.js:1)
引导程序:
bootstrap-4.1.3/js/bootstrap.js
bootstrap3-dialog:
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.js"></script>