赋值运算符综合案例 小练

20 阅读1分钟

算法中 push(尾部增加) unshift(头部增加) pop(尾部删除) shift(头部删除)的具体功能以及案例示范:

image.png

splice()剔除中间的值

踢除值的情况

image.png

增加值的情况

image.png