Ich habe ein Projekt, das Bootstrap und jQuery verwendet, und wenn ich den Navigationscode eingebe, erhalte ich in der Konsole die Fehlermeldung:
bootstrap.min.js:6 Uncaught TypeError: i.createPopper is not a function at xt._createPopper (bootstrap.min.js:6:23887) at xt.show (bootstrap.min.js:6:22196) at xt.toggle (bootstrap.min.js:6:22024) at HTMLAnchorElement.<anonymous> (bootstrap.min.js:6:26602) at HTMLDocument.s (bootstrap.min.js:6:4510) :
Ich versuche es mit den jQuery-Versionen: 2.2.1 und 1.12.4.
您的項(xiàng)目中可能缺少 popper.js。使用下面的 CDN 添加它:
如果您想包含,請參閱 Bootstrap 4 的文檔這兩個(gè)文件都帶有一個(gè)腳本調(diào)用。