<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國際加速解決方案。 廣告
                如果有類型錯誤的話就應該引起注意并且及時修改,更不能發布代碼,不過在開發階段,即便還沒完美解決 Flow 的提醒,我們還是會經常運行代碼的, 特別是在進行調試或者其他測試的時候。另外,因為Flow的語法并不是標準的JavaScript語法,所以我們也是要在代碼最終上線前移除Flow相關的代碼。 在這里,我們就可以安裝一個Babel 插件,試著運行下面的代碼, ``` npm install --save-dev babel-cli ``` 然后我們修改`.babelrc`文件,將`transform-flow-comments`添加到`plugins`里面,如下, ~~~ { "plugins": [ "flow", "transform-flow-comments" ] } ~~~ 然后執行我們在package.json里面配置好的命令`build`,把`src`目錄的檔案編譯到`dist`目錄中 >npm run build 控制臺輸出了以下信息, > my-project@ build E:\Flow > babel src/ -d lib/ >src\index.js -> lib\index.js 然后我們來查看一下編譯后的index.js長什么樣? ``` function foo(x) { return x + 666; } foo('HelloWorld!'); ``` 可以明顯的看到,原本有使用的Flow標記,或是有類型注釋的代碼,都被清除了,變成了最原始的標準js。
                  <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>

                              哎呀哎呀视频在线观看