<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1.vue 發送請求的方式有很多種,這里,我們推薦使用axios。 2.我們這里用npm安裝,安裝命令 `npm install axios` (注意,一定是要在項目文件夾下),如下圖顯示 ![](https://box.kancloud.cn/e9628d36bce4e21d9c417f66facea02f_677x392.png) 3.然后我們在入口文件引入一下 ![](https://box.kancloud.cn/52d2ef12c69eb30f3ad071ecc7a14cff_763x482.png) 4.打開文件 config/index.js ,我們先設置下請求地址,跨域等。 ![](https://box.kancloud.cn/754879a9efc9a70c07f800e9d9ea778d_897x525.png) 5.先寫一個簡單的請求,在我們之前的那個HelloWorld.vue,添加如下 ![](https://box.kancloud.cn/f2c246b6c564137d4d519007a8a04520_1181x586.png) 6.之后我們試一下,看看是否能夠請求成功,這里服務端返回的是 {'msg' : 'test'} ![](https://box.kancloud.cn/265b62055cf74511d852248aa22e2e0f_1746x683.png) 7.我們一個簡單的Get請求就成功了。
                  <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>

                              哎呀哎呀视频在线观看