CN 栈数据结构。 size 栈大小。 clear 清空栈。 push 元素入栈。 参数名 说明 item 入栈元素 返回值 当前大小 pop 元素出栈。 peek 获取最后一个元素但不移除它。 forEach 遍历栈。 参数名 说明 iterator 调用函数 ctx 函数上下文 toArr 将栈转换为 JavaScript 数组。