记一次删批量数据

 let array= ["    1125906379509517"
      ,
      "    1125906532625950"
      ,
      "    1125906532855603"
      ,
      "    1125906533034925"
      ,
      "    1125906532988205"
      ,
    ]


    console.log(array.length);

    var nn = 90
    let timer = setInterval(() => {
      let item = array[nn] ? array[nn].trim() : ""
      name(item)
      if (nn < array.length) {
        ++nn;
        console.log(nn);
      } else {
        clearInterval(timer)
      }

    }, 1000);

  }
//element 为批量数据的ID
  function name(element, i) {
    console.log(element);
    let url = "https://aaa.bbb.ccc:8881//order_deleteOaoDe.action?gorderId=" + element
    var popup = window.open('', '');
    popup.location.href = url;
    setTimeout(function () { popup.close(); }, 500);

  }


                    常常因为自己的无知而感到惶恐.
                                          ---Jun.
原文地址:https://www.cnblogs.com/moli-/p/14346271.html