# Function: previewImage

previewImage(params: PreviewImageParams): Promise‹PreviewImageRes

在新页面中全屏预览图片。 预览的过程中用户可以进行保存图片、发送给朋友等操作。

# 参数:

属性 类型
params PreviewImageParams

PreviewImageParams

属性 类型 描述
current? string 当前显示图片的链接
urls string[] 需要预览的图片链接列表。 2.2.3 起支持云文件ID。
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹PreviewImageRes