|
- //处理一组数据
-
- var arr =[];
- $("input[name='ids']").each(function(){
- arr.push($(this).val());
- })
- console.log(arr);
- const myInterval = setInterval("Sel()",1*1000);
- var c=0;
- var intCount=arr.length-1;
- function Sel()
- {
- if (intCount==c){ clearInterval(myInterval);}
- console.log(intCount,arr[c]);
- c++;
- }
复制代码 |
|