<table class="javascript">
<tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 循环处理起来页面可能会卡住。将数据拆分成多个小数组,利用计时器在不影响同步操作的空闲时间里一部分一部分得执行。 SplitArrall number . all . number . . SplitArr. init length .. oneLength .length . i i . i i . .i arrAll.i oneLength i oneLength .i arrAll.i oneLength . diviceStart _this setTimeout thisLength _this._this.. result i i thisLength i result _this._this.i console.result _this. _this. _this. _this. arrAll i i i arrAll.i firstDemo SplitArrarrAll firstDemo.