# 反射函数
> 用这些函数判断一个值的数据类型。
- 本页规范地址：https://hugozh.cn/functions/reflect/
- 最近更新：2026-10-02
- 站点：Hugo 中文文档（https://hugozh.cn/）· 社区维护的非官方中文翻译

## 本章页面
- [IsImageResource](https://hugozh.cn/functions/reflect/isimageresource/)：报告给定值是否为资源（Resource）对象，且按其媒体类型判断它表示一张图像。（Markdown：https://hugozh.cn/functions/reflect/isimageresource/index.md）
- [IsImageResourceProcessable](https://hugozh.cn/functions/reflect/isimageresourceprocessable/)：报告给定值是否为资源（Resource）对象，且表示一张 Hugo 能提取尺寸并处理的图像，例如转换、缩放、裁剪或应用滤镜。（Markdown：https://hugozh.cn/functions/reflect/isimageresourceprocessable/index.md）
- [IsImageResourceWithMeta](https://hugozh.cn/functions/reflect/isimageresourcewithmeta/)：报告给定值是否为资源（Resource）对象，且表示一张 Hugo 能提取尺寸、并在存在时提取 Exif、IPTC 与 XMP 数据的图像。（Markdown：https://hugozh.cn/functions/reflect/isimageresourcewithmeta/index.md）
- [IsMap](https://hugozh.cn/functions/reflect/ismap/)：报告给定值是否为映射（map）。（Markdown：https://hugozh.cn/functions/reflect/ismap/index.md）
- [IsPage](https://hugozh.cn/functions/reflect/ispage/)：报告给定值是否为页面（Page）对象。（Markdown：https://hugozh.cn/functions/reflect/ispage/index.md）
- [IsResource](https://hugozh.cn/functions/reflect/isresource/)：报告给定值是否为资源（Resource）对象。（Markdown：https://hugozh.cn/functions/reflect/isresource/index.md）
- [IsSite](https://hugozh.cn/functions/reflect/issite/)：报告给定值是否为站点（Site）对象。（Markdown：https://hugozh.cn/functions/reflect/issite/index.md）
- [IsSlice](https://hugozh.cn/functions/reflect/isslice/)：报告给定值是否为切片（slice）。（Markdown：https://hugozh.cn/functions/reflect/isslice/index.md）

---
