📅  最后修改于: 2022-03-11 14:48:35.456000             🧑  作者: Mango
let indexedArray: {[key: string]: number}
let indexedArray: {[key: string]: number} = {
foo: 123,
bar: 456
}
indexedArray['foo'] = 12;
indexedArray.foo= 45;