JS:.pop()
参考网址:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/pop
Array.prototype.pop()
pop()
方法从数组中删除最后一个元素,并返回该元素的值。此方法会更改数组的长度。
本文来自博客园,转载请注明原文链接:https://www.cnblogs.com/keeplearningandsharing/p/17671155.html