摘要:
<script type="text/javascript"> function CreateStack(){ this.array=[] } CreateStack.prototype.add=function(param){ this.array.unshift(param); } CreateStack.prototype.del=function(param){ this.array.shift(param); } var myStack=new CreateStack() ... 阅读全文