Updating arrays使用字符串键名更新数组使用数字键更新数组多维数组Updating arraysArrays are updated in the same way as PHP, using square brackets: 使用字符串键名更新数组let elements["foo"] = "bar"; 使用数字键更新数组let elements[0] = "bar"; 多维数组let elements[0]["foo"] = "bar";let elements["foo"][0] = "bar";