切记不要用arr[-1]!!!

切记不要用arr[-1]!!!

 

数组没有-1这个下标,会返回undefined

posted @ 2022-02-20 10:03  小白yang  阅读(24)  评论(0)    收藏  举报