①js:addressInfo = {} ②ts: addressInfo = null as any ts中使用①时,如果赋值的数据是异步获取的,在获取对象属性时会报错(如下): 类型“{}”上不存在属性“XXX”。 解决方法:如②