//栈的实现 function stack(){ this.dataStore = []; this.top = 0; this.pop = pop; this.push = push; this.peek = peek; }
js数据结构描述--栈
原文:http://www.cnblogs.com/liwuming/p/4488956.html