control.html.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template><div><h1 id="流程控制" tabindex="-1"><a class="header-anchor" href="#流程控制"><span>流程控制</span></a></h1>
  2. <h2 id="条件判断" tabindex="-1"><a class="header-anchor" href="#条件判断"><span>条件判断</span></a></h2>
  3. <p>根据条件执行不同分支。</p>
  4. <h3 id="参数" tabindex="-1"><a class="header-anchor" href="#参数"><span>参数</span></a></h3>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>参数</th>
  9. <th>说明</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. <tr>
  14. <td>条件</td>
  15. <td>判断表达式</td>
  16. </tr>
  17. </tbody>
  18. </table>
  19. <h2 id="循环" tabindex="-1"><a class="header-anchor" href="#循环"><span>循环</span></a></h2>
  20. <p>重复执行一组节点。</p>
  21. <h3 id="循环数据" tabindex="-1"><a class="header-anchor" href="#循环数据"><span>循环数据</span></a></h3>
  22. <p>遍历数组或对象。</p>
  23. <h3 id="while-循环" tabindex="-1"><a class="header-anchor" href="#while-循环"><span>While 循环</span></a></h3>
  24. <p>满足条件时持续执行。</p>
  25. <h2 id="延时" tabindex="-1"><a class="header-anchor" href="#延时"><span>延时</span></a></h2>
  26. <p>暂停执行指定时间。</p>
  27. <h3 id="参数-1" tabindex="-1"><a class="header-anchor" href="#参数-1"><span>参数</span></a></h3>
  28. <table>
  29. <thead>
  30. <tr>
  31. <th>参数</th>
  32. <th>说明</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr>
  37. <td>时长</td>
  38. <td>等待毫秒数</td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <h2 id="中断循环" tabindex="-1"><a class="header-anchor" href="#中断循环"><span>中断循环</span></a></h2>
  43. <p>跳出当前循环。</p>
  44. </div></template>