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 对话框:
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.35.4/js/bootstrap-dialog.js"></script>