JS array remove(popup) first element HenryZ 2022-11-23 目录 Array.shift() For example: var arr = [1, 2, 3, 4]; var theRemovedElement = arr.shift(); // theRemovedElement == 1 console.log(arr); // [2, 3, 4] Please enable JavaScript to view the comments powered by giscus.