Skip to main content
版本:v2

showToast

API_LEVEL 2.0 开始支持,API 兼容性请参考 API_LEVEL。

showToast_image}

显示消息提示框。

类型​

function showToast(option: Option): void

参数​

Option​

属性类型必填默认值说明API_LEVEL
contentstring是-提示的内容2.0

代码示例​

import { showToast } from '@zos/interaction'

showToast({
content: 'hello world',
})