摘要: 队列 这个很好理解 先入先出,有点像排队,通过数组push和shift模拟,通常用作任务管理 栈 // 栈class Stack{ constructor() { this.items=[] } push(item){ this.items.push(item) } pop(){ return th 阅读全文
posted @ 2020-05-26 11:10 又回到了起点 阅读(199) 评论(0) 推荐(0) 编辑