let param:object = {
'key1':value1,
'key2': value2
}
上面代码报错:
Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)
修改后:
let param:object = Object({
'key1':value1,
'key2': value2
})
网友评论