原生系统toast提示框 1.3.6版本开始生效

使用说明

import { MUtils } from '@yl/super-jssdk';

MUtils.toast(optional)

参数说明

参数 类型 必填 作用
optional Object 必选参数

optional

参数 类型 必填 作用
txt string 提示文本

返回说明

参数 类型 作用
resolve Function 成功回调
reject Function 失败回调

代码示例

MUtils.toast({ 
  txt: 'sdk 666' 
}).then(res => {
  console.log('res', res);
}).catch(err => {
  console.log('err', err);
})

results matching ""

    No results matching ""