我有一个Bootstrap模式,它使用requireJS在内部加载jQuery并运行JS,以模式显示输出。$("#modalLogin").modal();TypeError: undefined is not a function
在modal中加载jQuery似乎破坏了主页的jQuery modal功能。关闭模式</e
我正在尝试在React中使用Bootstrap模式。我已经成功地打开了一个模式。为了以编程方式关闭模式,我使用了下面的代码。当我单击该按钮时,会出现错误Unhandled Rejection (TypeError): jquery__WEBPACK_IMPORTED_MODULE_6___default(...)(...).modal is not a function 我导入了Bootstrap和jQuery,如下所示。import 'bootstrap';
imp