<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 一、基于vue-cli快速創建項目 可以在操作系統的cmd命令行環境中執行,也可以在VSCode的集成終端中執行; 1、創建新項目: ``` vue init webpack rayvue ``` ![](https://img.kancloud.cn/8a/ef/8aef0f6012bd4b0a0e1406db7de940d3_677x443.png) 或 ![](https://img.kancloud.cn/24/40/24405fc1e1aa4384c86899432931307d_1366x736.png) 完成之后,一個基本的 vue項目就搭建完了,其中main.js就是入口; ![](https://img.kancloud.cn/4e/60/4e6035bbb41ea2051ac6582f2bdf9873_663x476.png) 2、運行項目: ``` npm run dev ``` ![](https://img.kancloud.cn/0c/2e/0c2ec23922bf2080cd4bb709c13d9015_677x443.png) ![](https://img.kancloud.cn/d3/4e/d34e376d3c9ffba2df231b21d2af0d66_677x443.png) 瀏覽器里輸入:http://localhost:8080,即可看到效果了; ![](https://img.kancloud.cn/f2/b8/f2b811ee4b6728b981e2a295cefb7b53_1366x736.png) 3、項目打包發布上線 ``` npm run build ``` ![](https://img.kancloud.cn/20/cd/20cdeca926deab2634d5516afe571bd8_677x443.png) ![](https://img.kancloud.cn/6f/9c/6f9c2f427e4a94b52bb8886ebefaf4ec_677x443.png) ![](https://img.kancloud.cn/bb/f2/bbf27a9c5a2f2774250376a51e6992f3_946x536.png) ![](https://img.kancloud.cn/9f/db/9fdb9b0e0b47dfa9eb4e65ca2ed03676_828x215.png) 完成之后,項目文件夾中會出現一個**dist**文件夾,里面就是打包之后的內容,直接拷貝到web服務器部署即可; ## 二、典型項目結構 ![](https://img.kancloud.cn/a3/9a/a39a6358f5544c0114f67e4287f00629_293x590.png) 1、index.html 主頁,項目入口,運行的時候,首先訪問這個文件; 2、main.js 入口文件 3、App.vue 根組件 在項目運行中,main.js作為項目的入口文件,運行中,找到其實例需要掛載的位置,即index.html中,剛開始,index.html的掛載點處的內容會被顯示,但是隨后就被實例中的組件中的模板中的內容所取代,所以我們會看到有那么一瞬間會顯示出index.html中正文的內容。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看