<bdo id='3Ud5c'></bdo><ul id='3Ud5c'></ul>

    <small id='3Ud5c'></small><noframes id='3Ud5c'>

  • <tfoot id='3Ud5c'></tfoot>

    1. <legend id='3Ud5c'><style id='3Ud5c'><dir id='3Ud5c'><q id='3Ud5c'></q></dir></style></legend>
        <i id='3Ud5c'><tr id='3Ud5c'><dt id='3Ud5c'><q id='3Ud5c'><span id='3Ud5c'><b id='3Ud5c'><form id='3Ud5c'><ins id='3Ud5c'></ins><ul id='3Ud5c'></ul><sub id='3Ud5c'></sub></form><legend id='3Ud5c'></legend><bdo id='3Ud5c'><pre id='3Ud5c'><center id='3Ud5c'></center></pre></bdo></b><th id='3Ud5c'></th></span></q></dt></tr></i><div id='3Ud5c'><tfoot id='3Ud5c'></tfoot><dl id='3Ud5c'><fieldset id='3Ud5c'></fieldset></dl></div>

        javascript中的console.log和return之间的区别?

        Difference between console.log and return in javascript?(javascript中的console.log和return之间的区别?)

        <legend id='OsvxB'><style id='OsvxB'><dir id='OsvxB'><q id='OsvxB'></q></dir></style></legend>

          <tfoot id='OsvxB'></tfoot>
        1. <i id='OsvxB'><tr id='OsvxB'><dt id='OsvxB'><q id='OsvxB'><span id='OsvxB'><b id='OsvxB'><form id='OsvxB'><ins id='OsvxB'></ins><ul id='OsvxB'></ul><sub id='OsvxB'></sub></form><legend id='OsvxB'></legend><bdo id='OsvxB'><pre id='OsvxB'><center id='OsvxB'></center></pre></bdo></b><th id='OsvxB'></th></span></q></dt></tr></i><div id='OsvxB'><tfoot id='OsvxB'></tfoot><dl id='OsvxB'><fieldset id='OsvxB'></fieldset></dl></div>
            <tbody id='OsvxB'></tbody>
              <bdo id='OsvxB'></bdo><ul id='OsvxB'></ul>

              1. <small id='OsvxB'></small><noframes id='OsvxB'>

                • 本文介绍了javascript中的console.log和return之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 javascript 中使用 console.logreturn 的实例有哪些?

                  What are the instances when you would use console.log and return in javascript?

                  我刚开始学习 javascript,我想知道在哪些情况下我会使用它们?

                  I've just started learning javascript and I want to know what are some instances when I'd use them?

                  推荐答案

                  来自 http://blogs.msdn.com/b/cdndevs/archive/2011/05/26/console-log-say-goodbye-to-javascript-alerts-for-debugging.aspx

                  console.log 将显示传递给 log 方法的参数控制台窗口.使用此方法在控制台窗口.

                  console.log will display the parameter passed to the log method in the console window. Use this method to display a string or variable in the console window.

                  您也可以在代码中使用控制台类,就像我们一样使用 JavaScript 警报.

                  You can use the console class in your code as well, much like we can use JavaScript alerts.

                  <script type = "text/javascript"> 
                      function tryConsole() { 
                          console.log("hello world"); 
                      } 
                  </script>
                  

                  当使用return语句时,函数将停止执行,并返回指定的值.

                  When using the return statement, the function will stop executing, and return the specified value.

                  这篇关于javascript中的console.log和return之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)
                  How to get number of video views with YouTube API?(如何使用 YouTube API 获取视频观看次数?)

                          <tfoot id='gVNcl'></tfoot>

                          <small id='gVNcl'></small><noframes id='gVNcl'>

                            <tbody id='gVNcl'></tbody>

                          <i id='gVNcl'><tr id='gVNcl'><dt id='gVNcl'><q id='gVNcl'><span id='gVNcl'><b id='gVNcl'><form id='gVNcl'><ins id='gVNcl'></ins><ul id='gVNcl'></ul><sub id='gVNcl'></sub></form><legend id='gVNcl'></legend><bdo id='gVNcl'><pre id='gVNcl'><center id='gVNcl'></center></pre></bdo></b><th id='gVNcl'></th></span></q></dt></tr></i><div id='gVNcl'><tfoot id='gVNcl'></tfoot><dl id='gVNcl'><fieldset id='gVNcl'></fieldset></dl></div>

                            <bdo id='gVNcl'></bdo><ul id='gVNcl'></ul>
                            <legend id='gVNcl'><style id='gVNcl'><dir id='gVNcl'><q id='gVNcl'></q></dir></style></legend>