---
title: 循环
date: 2024-06-06T23:51:39Z
tags: []
---

1. while

   ```javascript
   while (循环条件) {
     //循环体
   }
   ```

2. for

   ```javascript
   for (;;) {
     //循环体
   }
   ```

3. 退出循环

   ​`continue`​:退出本次循环

   ​`break`​:退出整个循环
