Bootstrap 4 BootstrapDailog在带有Jquery 3.3.1的Bootstrap4中不起作用

Bootstrap 4 BootstrapDailog在带有Jquery 3.3.1的Bootstrap4中不起作用,bootstrap-4,android-webview,jquery-3,jquery-migrate,bootstrap-dialog,Bootstrap 4,Android Webview,Jquery 3,Jquery Migrate,Bootstrap Dialog,调用BootstrapDialog时,我正在将BootstrapDialog与Bootstrap4和Jquery3.3.1一起使用。确认后,它将抛出一个错误“Uncaught TypeError:Object.keys在非对象上调用”在较旧版本的chrome中。我还添加了Jquery-migrate3.0.0,但没有起作用。但是BootstrapDialog可以与Bootstrap3配合使用,而Jquery-2.2.3和Jquery-2.2.3的bootstrap4对话框或模块有点奇怪。但是试试

调用BootstrapDialog时,我正在将BootstrapDialog与Bootstrap4和Jquery3.3.1一起使用。确认后,它将抛出一个错误“Uncaught TypeError:Object.keys在非对象上调用”在较旧版本的chrome中。我还添加了Jquery-migrate3.0.0,但没有起作用。但是BootstrapDialog可以与Bootstrap3配合使用,而Jquery-2.2.3和Jquery-2.2.3的bootstrap4对话框或模块有点奇怪。但是试试这个解决方案,希望它对你有用

    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
  Launch demo modal
</button>

<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalCenterTitle">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

启动演示模式
情态标题
&时代;
...
接近
保存更改

请提供您的代码。实际上,当我将bootstrap更新为bootstrap4.1时,代码已经运行。谢谢您的回复