用入棧和出棧的方法實現字符串的逆序輸出

//入棧和出棧方法的實現字符串的逆序輸出 function stack() { this.data=[]; this.top=0; } stack.prototype={ push:function (element) { this.data[this.top++]=element; }, pop:function () {
相關文章
相關標籤/搜索