错误:Bootstrap的JavaScript在laravel 5.4上需要jQuery [英] Error: Bootstrap's JavaScript requires jQuery on laravel 5.4

查看:63
本文介绍了错误:Bootstrap的JavaScript在laravel 5.4上需要jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,在混合laravel模板后,我的jquery出现了一些问题,错误:Bootstrap的JavaScript需要jQuery

hello guys after mixing laravel template i have some problem with the jquery with Error: Bootstrap's JavaScript requires jQuery

在搜寻完即时消息后,我仍然感到困惑,您能为我提供帮助吗

and after searcing im still confused whats happen can you help me

这是我的代码:

<script src="{{{ URL::asset('js/ace-extra.min.js')}}}"></script>
<script src="{{{ URL::asset('js/bootstrap.min.js')}}}"></script>
  <script src="{{{ URL::asset('js/ace-elements.min.js')}}}"></script>
  <script src="{{{ URL::asset('js/ace.min.js')}}}"></script>

`

和 Firefox 上的错误:

and error on firefox :

此处

推荐答案

Bootstrap JS与某些jQuery元素配合使用.

Bootstrap JS works with some jQuery elements.

您需要先导入jQuery,然后再导入Bootstrap JS.

You need to import jQuery before importing Bootstrap JS.

<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Then import bootstrap js -->

这篇关于错误:Bootstrap的JavaScript在laravel 5.4上需要jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆