84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Make a progress bar and it will be 100% after loading. How to judge that the loading is complete?
欢迎选择我的课程,让我们一起见证您的进步~~
Fake loading is usually done by adding random numbers, up to 99, and after all resources are loaded, it becomes 100.
Need a resource pool object
{ js: [a.js,b.js], img:[c.png, d.jpg], css:[e.css] }
Preload the files, listen to the onload event, and trigger the callbackCount the total number of files: all_files current cur_filesPercentage: percent = all_files, cur_files.
There is a ready-made loading library~ Go and find it on github.
Fake loading is usually done by adding random numbers, up to 99, and after all resources are loaded, it becomes 100.
Need a resource pool object
Preload the files, listen to the onload event, and trigger the callback
Count the total number of files: all_files current cur_files
Percentage: percent = all_files, cur_files.
There is a ready-made loading library~ Go and find it on github.