【发布时间】:2019-08-17 06:30:04
【问题描述】:
我想将引导布局集成到 ReactJS 中。在这里,我遇到了一个问题,因为我错过了引导程序中的一个 jquery 文件,因此我的代码无法正常工作。 我很困惑如何在 App.js 中集成 Jquery
import './App.css';
import './css/bootstrap.min.css';
import './css/style.css';
import './css/slick.css';
import './js/slick.min.js'; //Jquery
错误显示为:
Line 17: 'define' is not defined no-undef
Line 17: 'define' is not defined no-undef
Line 17: 'jQuery' is not defined no-undef
Line 17: Expected an assignment or function call and instead saw an
expression no-unused-expressions
Line 17: Expected an assignment or function call and instead saw an
expression no-unused-expressions
如何在 App.js 中添加 slick.min.js
【问题讨论】:
-
有 npm 你可以用 npm 来做 slick
-
您是否链接到 jQuery CDN?
-
不,我没有使用 jquery CDN。我从本地目录链接它
标签: reactjs