<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之旅 廣告
                <table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><th colspan="3" align="center">Smarty - the compiling PHP template engine<br/> Smarty - php 模板編譯引擎 </th> </tr><tr><td width="25%" align="left" valign="bottom"><a href="language.custom.functions.html" accesskey="P">Prev</a></td> <td width="50%" align="center" valign="bottom">Chapter 8. Custom Functions[第八章.自定義函數]</td> <td width="25%" align="right" valign="bottom"><a href="language.function.cycle.html" accesskey="N">Next</a></td></tr></table> # {counter} {counter} is used to print out a count. {counter} will remember the count on each iteration. You can adjust the number, the interval and the direction of the count, as well as determine whether or not to print the value. You can run multiple counters concurrently by supplying a unique name for each one. If you do not supply a name, the name “default” will be used. If you supply the assign attribute, the output of the {counter} function will be assigned to this template variable instead of being output to the template. {counter}用于輸出一個記數過程。{counter}保存了每次記數時的當前記數值。用戶可以通過調節間隔(skip)和方向(direction)計算該值。也可以決定是否輸出該值。如果需要同時運行多個計數器,必須為它們指定不同的名稱。如果沒有指定名稱,模板引擎使用 "default" 作為缺省值。 如果指定了 "assign" 這個屬性,該計數器的輸出值將被賦給由*assign*指定的模板變量,而不是直接輸出。 | Attribute Name | Type | Required | Default | Description | |-----|-----|-----|-----|-----| | name | string | No | *default* | The name of the counter | | start | number | No | *1* | The initial number to start counting from | | skip | number | No | *1* | The interval to count by | | direction | string | No | *up* | the direction to count (up/down) | | print | boolean | No | *true* | Whether or not to print the value | | assign | string | No | *n/a* | the template variable the output will be assigned to | | 屬性 | 類型 | 是否必須 | 缺省值 | 描述 | |-----|-----|-----|-----|-----| | name | string | No | *default* | 計數器的名稱 | | start | number | No | *1* | 記數器初始值 | | skip | number | No | *1* | 記數器間隔、步長 | | direction | string | No | *up* | 記數器方向,(增/減) | | print | boolean | No | *true* | 是否輸出值 | | assign | string | No | *n/a* | 輸出值將被賦給模板變量的名稱 | <table width="100%" border="0" cellpadding="0" cellspacing="0" class="EXAMPLE"><tr><td><div class="EXAMPLE"><a name="AEN81" id="AEN81"/> <b>Example 8-1. {counter}<br/> 例 8-1. counter 函數演示</b> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="PROGRAMLISTING">{* initialize the count *}{counter start=0 skip=2}&lt;br /&gt;{counter}&lt;br /&gt;{counter}&lt;br /&gt;{counter}&lt;br /&gt; this will output:0&lt;br /&gt;2&lt;br /&gt;4&lt;br /&gt;6&lt;br /&gt;</pre></td></tr></table></div></td></tr></table> <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="language.custom.functions.html" accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="language.function.cycle.html" accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Custom Functions<br/> 自定義函數</td><td width="34%" align="center" valign="top"><a href="language.custom.functions.html" accesskey="U">Up</a></td><td width="33%" align="right" valign="top">{cycle}</td></tr></table>
                  <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>

                              哎呀哎呀视频在线观看