Skip to content

将数组的length设置为0,取第一个元素会返回什么?

参考答案:

设置 length = 0 会清空数组,所以会返回 undefined