diff --git a/docs/uts/buildin-object-api/map.md b/docs/uts/buildin-object-api/map.md index dd1e4f1aa258ada9382d5cf680257dc9e0b7b9bb..b87889f6f43224e6e1935178a09b222898d95b9d 100644 --- a/docs/uts/buildin-object-api/map.md +++ b/docs/uts/buildin-object-api/map.md @@ -176,3 +176,12 @@ console.log(map.get('key1')) // 跨端用法 * 目前 `Map` 类型编译到 kotlin 为 io.dcloud.uts.Map +```ts +// kotlin map 转换为 uts map +let kotlinMap = getMapFromNative() +console.log(kotlinMap) +let utsMap = new Map() +utsMap.putAll(kotlinMap) +``` + +