栈(stack)

``` function Stack(){ var items = []; //进栈 this.push = function(element){ items.push(element); } //出栈 this.pop = function(){ return items.pop(); } //栈的长度 this.size = function(){ return ...
posted @ 2018-01-04 13:47  IT-caijw  阅读(152)  评论(0编辑  收藏  举报