vue系列3:引入css和js


一、引入css和js的步驟:

1、找到項目文件夾下的static文件夾,並在該文件夾下存放靜態資源

 

2、找到項目文件夾下的index.html文件

 

3、引入需要的css和js

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>pc</title>
    <link href="./static/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="./static/css/essentials.css" rel="stylesheet" type="text/css" />
    <link href="./static/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="./static/css/assets/images/favicon.ico">
    <!-- PAGE LEVEL SCRIPTS -->
    <link href="./static/css/header-1.css" rel="stylesheet" type="text/css" />
    <link href="./static/css/layout-shop.css" rel="stylesheet" type="text/css" />
    <link href="./static/css/color_scheme/orange.css" rel="stylesheet" type="text/css" id="color_scheme" />
    <!-- <link href="/static/js/toastr/toastr.min.css" rel="stylesheet" /> -->

</head>

<body>
    <div id="app">
        <Header/>
        <App/>
        <Footer/>
    </div>
    <script src="./static/js/jquery.js"></script>
    <script src="./static/js/bootstrap-touchspin-master/src/jquery.bootstrap-touchspin.js" />
    <!-- <script src="./static/js/toastr/toastr.min.js"></script> -->
    <script src="./static/js/swiper.min.js"></script>
    <script src="./static/js/jquery.bootpag.min.js"></script>
</body>

</html>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM