一.常用方法(push,pop,unshift,shift,join)push pop栈方法,后进先出var a =[1,2,3];console.log(a.push(40)); //4 返回数组的长度console.log(a); //[1, 2, 3, 40] var b =[1,2,3];console.log(b.pop()); //3 返回最后一项console.log(b); // [1, 2]-------------------------------------------…