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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 12.10.1. Velocimacro 參數 Velocimacros 的參數可以是以下的VTL元素: + 引用(Reference): 以 '$' 打頭的元素 + 字面字符串(String literal) : 比如"$foo" 或 'hello' + 字面數字: 1, 2 …. + 整數范圍: \[ 1..2\] 或 \[$foo .. $bar\] + 對象數組: \[ "a", "b", "c"\] + 布爾真 + 布爾假 當把引用作為參數傳遞給Velocimacros時,請注意引用是按“名字”傳遞的。這意味著他們的值在每次使用他們的Velocimacro中產生。這個特性允許你在方法調用是傳遞引用,并在每次使用時進行方法調用。例如,Fo,當調用下面的Velocimacro 時, ``` #macro( callme $a ) $a $a $a #end #callme( $foo.bar() ) ``` 結果是,在方法bar() 中,引用 $foo 被調用了3次。 咋看時,這個特征讓人吃驚,當當你考慮一下Velocimacros的原本動機 – 在VTL模板中避免很多“剪切復制”操作—你就會明白。它允許你將無狀態對象,比如在一個顏色表格行內重復產生一些顏色次序的對象,傳遞給Velocimacro。 如果你需要使用這個特征,你通常可以從方法內取得一個值,作為一個新的引用傳遞給宏: ``` #set( $myval = $foo.bar() ) #callme( $myval ) ```
                  <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>

                              哎呀哎呀视频在线观看