Heim  >  Fragen und Antworten  >  Hauptteil

Dropdown-Liste in der Navigationsleiste funktioniert nicht und gibt einen Fehler aus

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.

P粉423694341P粉423694341179 Tage vor359

Antworte allen(1)Ich werde antworten

  • P粉451614834

    P粉4516148342024-03-29 12:05:16

    您的项目中可能缺少 popper.js。使用下面的 CDN 添加它:

    如果您想包含,请参阅 Bootstrap 4 的文档这两个文件都带有一个脚本调用。

    Antwort
    0
  • StornierenAntwort