2013-07-26 7 views
0

문제가 발생했습니다. 내가 사용했을 때 <script src="js/app.js"></script>과 같은 것들을 말하자면 요소를 검사하고 크롬에서 콘솔로 갔을 때 오류를 반환했지만 atleast는 드롭 다운과 스크립트가 작동했습니다. 내가 다음과 같이 바꿨을 때 :Laravel 4 블레이드 템플릿

{{ HTML::script('http://code.jquery.com/jquery-1.10.2.js') }} 
{{ HTML::script('js/bootstrap.min.js') }} 
{{ HTML::script('js/prettify.js') }} 
{{ HTML::script('js/scripts.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/jquery.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-transition.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-alert.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-modal.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-dropdown.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-scrollspy.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-tab.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-tooltip.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-popover.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-button.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-collapse.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-carousel.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-typeahead.js') }} 

그것은 바뀌었다. 요소를 검사 할 때 콘솔 오류가 발생하지 않지만 사이트가 어떤 이유로로드하지 않습니다. 아무도 이것을 경험 한 적이 있습니까? 그래도 문제가 있으면

+2

질문을 조금 더 이해할 수 있습니까? 그 내용이 확실하지 않습니다. –

+1

은'{{HTML :: script ('js/scripts.js')}}'가 바로 여기 또는 안에 오타입니다. 귀하의 코드도 –

답변

2
// Jquery 
{{ HTML::script('http://code.jquery.com/jquery-2.0.0.min.js') }} 
// Your's scripts 
{{ HTML::script('/js/bootstrap.min.js') }} 
{{ HTML::script('/js/prettify.js') }} 
{{ HTML::script('/js/scripts.js') }} 
// Twitter bootstrap 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-transition.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-alert.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-modal.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-dropdown.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-scrollspy.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-tab.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-tooltip.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-popover.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-button.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-collapse.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-carousel.js') }} 
{{ HTML::script('http://twitter.github.io/bootstrap/assets/js/bootstrap-typeahead.js') }} 

는, 디버거의 스크린 샷을주세요 - laravel을.

+0

나는 그것을 바꿨지만, 행운, 여전히 작동하지 않습니다. 어떻게 디버깅 할 수 있습니까? 나는 loic-sharma 프로파일 러를 다운로드했습니다. 또한 Chrome 개발자 도구에는 콘솔 오류가 없지만

관련 문제