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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [官方文檔](https://underscorejs.org/) [中文文檔](http://www.bootcss.com/p/underscore/) 安裝 node.js命令 cmd `npm install underscore ` ~~~ //加載underscore模塊 var _=require('underscore'); var names=['張三','李四','王五']; var ages=[18,19,20]; var genders=['男','男','女']; //壓縮 var result=_.zip(names,ages,genders); console.log(result); //解壓 result=_.unzip(result); console.log(result); ![](https://box.kancloud.cn/7f8e1a5e78052210aa40c9e94527dcf5_698x39.png) //--------demo2------------------ var _ = require('underscore'); //聲明了一段代碼模板代碼的html文檔 var html = '<h2><%= name %><h2>'; //template()函數的返回依然是一個函數 var fn=_.template(html); //調用template()返回的這個函數fn //fn接收一個數據對象,并用該數據對象。將html中的模板內容替換,生成最終的html代碼。 var html=fn({name:'得到'}); console.log(html); //--------demo2------------------ var _ = require('underscore'); //聲明了一段代碼模板代碼的html文檔 var html = '<h2><%= name %><h2>'; //template()函數的返回依然是一個函數 var fn=_.template(html); //調用template()返回的這個函數fn //fn接收一個數據對象,并用該數據對象。將html中的模板內容替換,生成最終的html代碼。 html=fn({name:'得到'}); console.log(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>

                              哎呀哎呀视频在线观看