부트 스트랩과 함께 번들로 제공되는 Laravel 5.5에서 제대로 작동하는 메인 JS 파일 (예 : larvel mix가 적절하게로드 된 모든 js 파일로 컴파일 됨)이 작동합니다. 그러나 부트 스트랩 3.3.7의 회전 장치는 전혀 작동하지 않습니다. 전환 (슬라이드 동작)이 작동하지 않으며 단추가 전혀 작동하지 않습니다. 여기부트 스트랩 캐 루젤 기능 없음
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('./animations');
window.Vue = require('vue');
// *
// * Next, we will create a fresh Vue application instance and attach it to
// * the page. Then, you may begin adding components to this application
// * or customize the JavaScript scaffolding to fit your unique needs.
Vue.component('example-component', require('./components/ExampleComponent.vue'));
const app = new Vue({
el: '.content'
});
<script type="text/javascript" src="{{ asset('js/jquery-3.2.1.min.js') }}"></script>
<!-- Styles -->
<link href="{{ asset('css/main.css') }}" rel="stylesheet"> . .. ...
<div class="container-fluid content">
<div class="carousel slide" id="features">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#features" data-slide-to="0" class="active"></li>
<li data-target="#features" data-slide-to="1"></li>
<li data-target="#features" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="/images/niceview.jpg">
<div class="carousel-caption">
<h4 class="carousel-header">Lorem Ipsum</h4>
<p class="carousel-text">Some Lorem ipsum.</p>
</div>
</div>
</div>
<div class="carousel-inner">
<div class="item">
<img src="/images/rear.jpg">
<div class="carousel-caption">
<h4 class="carousel-header">Dreams</h4>
<p class="carousel-text">Lorem ipsum</p>
</div>
</div>
</div>
<div class="carousel-inner">
<div class="item">
<img src="/images/view.jpg">
<div class="carousel-caption">
<h4 class="carousel-header">Dreams</h4>
<p class="carousel-text">Lorem ipsum</p>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#features" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#features" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
내 html 파일 아래에있는 내 코드입니다. 그리고 지금은 콘솔에 어떤 오류도 발생하지 않으므로 잘못된 점에 대한 단서가 없습니다.
도와주세요 :(
나는이있는 당신이 라이브러리 – Satya
나는 JQuery와 JS 파일을 외부에서로드 한로드 순서인지 확인할 수 JQuery와 부트 스트랩 전에로드해야 할 것 같아요 . 내 코드의 html 페이지 맨 위에 표시됩니다. – UncleT
또한 회전식 컨베이어가 일반 HTML/js로 Laravel 외부에서 작동합니까? 귀하의 html에서 div class = "carousel-inner"는 child div class = "item"을 가지고 있지만 bootstrap 예제에서 그들은 carousel-item ..이라고 부릅니다 .. https://v4-alpha.getbootstrap.com/components/carousel/ – numbtongue