> 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.

# data

APISummary
获取 `TemplateData` 对象中的数据。

## 语法

### Harmony

```typescript
data(): void;
```

## 兼容性

**Compatibility Table**

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

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

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

**`data`**

Get the data in TemplateData object.

**Specifications:**

