2016年11月2日

js 实现栈

摘要: 1 function Stack() { 2 this.dataStore = []; 3 this.top = 0; 4 this.push=push; 5 this.pop=pop; 6 this.peek=peek; 7 this.length=length; 8 this.clear=clear; 9 } 10 ... 阅读全文

posted @ 2016-11-02 15:23 放羊的星星bky 阅读(172) 评论(0) 推荐(0)

导航