icon
图标。
| 属性名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| type | String | icon的类型,有效值:success, success_no_circle, info, warn, waiting, cancel, download, search, clear | |
| size | Number / String | 23px | icon的大小,单位px(2.4.0起支持rpx) |
| color | Color | icon的颜色,同css的color | |
| aria-label | String | 无障碍访问,(属性)元素的额外描述 2.5.0 |
wx.showToast({
title: '上传图片不能大于1M!', //标题
icon: 'none',
duration: 2000
})