3.1.3 message

说明: 用来提示用户,具体行为是出现一个message,然后一段时间后消失

使用及参数说明:
xui.message(string, time, callback);
  • string表示提示信息的文案 必传
  • time表示提示信息显示的时间,默认是1000ms
  • callback表示提示信息消失后的回调
  • 没有你想要的功能? 快联系我: xumeng0611@gmail.com添加吧

效果展示

1.我们可以就配置一些显示的文字,默认时间为1s.

xui.message('hello, world');

2.当然,我们也可以修改一下显示并消失的时间

xui.message('hello, world', 2000);

3.如果你想文字显示完了,加一个回调,我们也是支持的哦~

xui.message(
    'hello, world', 
    2000, 
    function(){
        console.log('look, this is callback!');
    }
);

results matching ""

    No results matching ""