这个太帅了, 值得记录一下:

arr.splice(-1,1)

原文: https://stackoverflow.com/questions/19544452/remove-last-item-from-array