在Laravel + Turbolinks中,$不是函数(jQuery无法识别)

时间:2020-04-16 02:20:52

标签: php jquery laravel laravel-5 turbolinks

我正在使用Turbolinks,它在laravel中确实很棒。

我使用npm安装了turbolinks,并构建了turbolinks.js。 (没有其他jQuery,Popper.js ..,只有turbolinks.js)。

我包括了它。

vendors.bundle.js

Uncaught TypeError: $ is not a function 包括jquery,bootstrap,popper.js。

当我加载项目时,turbolinks可以正常工作,但是唯一的问题是这个。

$("#test").modal();

包括 java -Xmx1500m -jar cgview\cgview.jar -f jpg -i C:\BRIG-0.95- dist\cgview\cgview_xml_builder\result\scratch\GCA_000017885.4_ASM1788v4_cds_from_genomic.fna.xml -o C:\BRIG-0.95-dist\cgview\cgview_xml_builder\result\GCA_000017885.4_ASM1788v4_cds_from_genomic.fna.jpg SYS_ERROR:java.lang.NoClassDefFoundError: org/apache/batik/svggen/SVGGraphics2DIOException SYS_ERROR: at java.lang.Class.getDeclaredMethods0(Native Method) 的所有jquery函数均无效。

有人可以帮助我吗?

0 个答案:

没有答案