尝试在电子中显示 Bootstrap Modal。
const $ = require('jquery');
require('bootstrap');
$(document).ready(() => {
$('#myModal').modal();
});
$(...).modal is not a function.
原因是什么以及如何实施?
尝试使用此代码请您的应用程序
var myModal = new bootstrap.Modal(document.getElementById('myModal'), options)
我之前在 ElectronJS 中遇到过 Bootstrap 模态问题。 这段代码运行得很好。