事實上,javascript 就內建堆疊的使用方式,所以上面的程式可以改寫成這樣: let stack = []; // 存入(push)堆疊 stack.push("a"); stack.push("b"); ...
確定! 回上一頁