zoukankan      html  css  js  c++  java
  • 切片

     1 export function section(): void {
     2     const ul = document.getElementById('ul');
     3     const total = 10001;
     4     const once = 20;
     5     function loop(curTotal: number): void {
     6         if (curTotal <= 0) {
     7             return;
     8         }
     9         const pageCount = Math.min(curTotal, once);
    10         window.requestAnimationFrame(() => {
    11             const fragment = document.createDocumentFragment();
    12             for (let i = 0; i < pageCount; i++) {
    13                 const li = document.createElement('li');
    14                 li.innerText = `${i}`;
    15                 fragment.appendChild(li);
    16             }
    17             ul && ul.appendChild(fragment);
    18         });
    19         loop(curTotal - pageCount);
    20     }
    21     loop(total);
    22 }
    以自己现在的努力程度,还没有资格和别人拼天赋
  • 相关阅读:
    c++ bitset 10进制转二进制
    PIVOT
    西渡
    check all tables rows

    View Triggers Function Procedure
    ORA-01400: cannot insert NULL into
    中东
    力的合成
    正弦、余弦和正切
  • 原文地址:https://www.cnblogs.com/zhenjianyu/p/15154631.html
Copyright © 2011-2022 走看看