답변:
상단에 bootstrap.css아래와 같은 댓글이 있어야합니다.
/*!
* Bootstrap v2.3.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
존재하지 않는 경우 삭제되었을 수 있습니다.
버전 :
여기에서 버전 기록을 검토 할 수 있습니다 . 소스가 v2.0.0 (2012 년 1 월) 이상인 경우 이전 버전과의 호환성이 깨지면 안됩니다. v2.0.0 이전 버전 인 경우 여기 에 업그레이드에 대한 세부 정보가 있습니다 .
브라우저의 자바 스크립트 콘솔을 통해 부트 스트랩 버전을 확인할 수도 있습니다.
$.fn.tooltip.Constructor.VERSION // => "3.3.7"
크레딧 : https://stackoverflow.com/a/43233731/1608226
검색에 JavaScript를 포함하는 것을 잊고 위의 질문 대신이 질문에 끝날 때 항상이 질문을 발견했기 때문에 여기에 게시하십시오. 이것이 도움이된다면 해당 답변도 찬성표를 보내주십시오.
jQuery.fn.tooltip.Constructor.VERSION 충돌 사례가없는 경우 :) 감사합니다!
에 Package.json
"dependencies": {
// ...
"bootstrap": "4.1.3"
// ...
}
node_modules폴더를 열고 그 아래에bootstrap폴더 검색 및 열기package.jsonscss/bootstrap.scss 또는 css/bootstrap.cssREADME.mdpackage.json만 표시 됩니다. 설치 한 버전은 표시되지 않습니다. 의 설명을 살펴 가지고 물결표 및 캐럿 속기
부트 스트랩 버전은 CSS 파일 상단에 표시됩니다. 파일을 열고 파일 상단을 확인하기 만하면됩니다.
예 :
/*!
* Bootstrap v2.3.0
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
Shoud는 페이지 상단에 명시됩니다.
같은 것.
/* =========================================================
* bootstrap-modal.js v1.4.0
* http://twitter.github.com/bootstrap/javascript.html#modal
* =========================================================
* Copyright 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================= */
이 주석은 Bootstrap v2.3.3의 사용자 정의 버전 인 것 같습니다. 여기에 .css의 기본 헤더가 있습니다. 마지막 주석 줄을 확인하십시오.
/*!
* Bootstrap v2.3.2
*
* Copyright 2013 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*/
무엇을 성취하려고합니까? 사용자 정의 인 경우 나쁜 생각처럼 보이지만 작업 할 파일 세트가 있습니다. 그렇지 않으면 현재 릴리스이기 때문에 v4.1.x의 전체 빌드를 사용하는 것이 좋습니다.
현재 가지고있는 버전을 확인하려면 명령 줄 / 콘솔 터미널에 -v를 사용할 수 있습니다.
부트 스트랩 -v