In .NET (ASP.NET), a While loop is used in JavaScript in the front desk. The loop is to be executed, but the browser always pops up an error message. If you continue to execute, you may have no response, after the test I found that there is no statement in the loop, you can loop 10 million or more, and you will pop up the prompt information when you have a simple statement, you can execute hundreds of thousands of times without errors. When there is a complex statement, only about 120,000 times, and when the clicking prompt is continued, the running speed of the machine is slower, and the CPU is 100% run. After using two separate cycles, the above situation is solved.