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

                ## Mock簡介 * Mock是模擬對象的意思,用于進行被測組件對外依賴的模擬。 * Mock 是測試驅動開發必備之利器, 只要有狀態, 有依賴, 做單元測試就不能沒有 Mock * 在 API 或 集成測試的時候, 如果依賴于第三方的 API, 也時常使用 mock server 或 mock proxy ## 如何使用 Saber已經完美集成了Mock,可以很方便地模擬動靜態數據,達到對接服務端的真實性與準確性。下面我們來看下如何在Saber中使用Mock 1. 我們到mock文件夾下創建demo.js ![](https://img.kancloud.cn/3a/c7/3ac70849b5b95a03e2fbb62ee7298f8c_2310x688.png) 2. 在mock文件夾下的index.js配置加載 ![](https://img.kancloud.cn/57/20/57205fc9b6cae163bdb95f8f27416503_1758x686.png) 3. 這樣一來,一個簡單的mockAPI就配置好了 4. 更多Mock詳細教程請看:[https://segmentfault.com/a/1190000014844604](https://segmentfault.com/a/1190000014844604)
                  <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>

                              哎呀哎呀视频在线观看