> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# merge

APISummary
将传入的数据与当前数据合并。

## 语法

### Harmony

```typescript
merge(data: string | Record<string, Object> | Object): void;
```

#### 参数说明

- `data`: 字符串、键值或 json 格式的传入数据。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.template-data.merge`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-data/merge.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| merge | No | Yes (3.4) | No | No | No | No |

**`merge`**

Merge the incoming data with the current data.

**Specifications:**

