JavaScript:实现stack堆栈算法 const Stack = (function () { function Stack () { // The top of the Stack this.top =