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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                {for} {for}{forelse}用于創建一個簡單的循環。 下面的幾種方式都是支持的: {for $var=$start to $end} 步長1的簡單循環。 {for $var=$start to $end step $step} 指定步長的循環。 {forelse}在循環不能遍歷的時候執行。 屬性: <table border="1"> <colgroup> <col align="center"> <col align="center"> <col align="center"> <col align="center"> <col align="center"> <col> </colgroup> <thead><tr> <th align="center">參數名稱</th> <th align="center">縮寫</th> <th align="center">類型</th> <th align="center">必選參數</th> <th align="center">默認值</th> <th>說明</th> </tr></thead> <tbody><tr> <td align="center">max</td> <td align="center">n/a</td> <td align="center">integer</td> <td align="center">No</td> <td align="center"><span class="emphasis"><em>n/a</em></span></td> <td>循環的次數</td> </tr></tbody> </table> 可選標記: <table border="1"> <colgroup> <col align="center"> <col> </colgroup> <thead><tr> <th>名稱</th> <th>說明</th> </tr></thead> <tbody><tr> <td>nocache</td> <td>關閉<code class="varname">{for}</code> 循環的緩存</td> </tr></tbody> </table> 簡單的{for} 循環 ``` <ul> _{for $foo=1 to 3}_ <li>_{$foo}_</li> _{/for}_ </ul> ``` 輸出: ``` <ul> <li>1</li> <li>2</li> <li>3</li> </ul> ``` 使用max 屬性 控制器: ``` return View('Home/index')->data(['to' => 10])->get(); ``` 模板: ``` <ul> _{for $foo=3 to $to max=3} _ <li>_{$foo}_</li> _{/for} _ </ul> ``` 輸出: ``` <ul> <li>3</li> <li>4</li> <li>5</li> </ul> ``` {forelse}的執行 } 控制器: ``` return View('Home/index')->data(['start' => 10,'to' => 5])->get(); ``` 模板: ``` <ul> _{for $foo=$start to $to}_ <li>_{$foo}_</li> _{forelse}_ no iteration _{/for}_ </ul> ``` 輸出: ``` no iteration ```
                  <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>

                              哎呀哎呀视频在线观看