搭建直播平台,iYiuMessage 消息提示组件
引入和创建iYiuMessage实例
<script src="./js/iYiu.js" type="text/javascript"></script>
<script type="text/javascript">
//创建iYiuMessage实例
var iYiuMessage = new iYiu();
</script>
Message消息提示:
iYiuMessage.message('我是错误信息,但是我不告诉你哪里错了!')
Loading加载提示(一):
iYiuMessage.inload();//加载
iYiuMessage.outload(6000);//结束加载
Loading加载提示(二):
iYiuMessage.inload({
icon:'./image/oval.svg'
});//加载
iYiuMessage.outload(6000);//结束加载
Loading加载提示(三):
iYiuMessage.inload({
icon:'./image/oval.svg',
message:'加载中'
});//加载
iYiuMessage.outload(6000);//结束加载
createBox加载提示:
iYiuMessage.createBox({
title:'删除',
message:'你请定要删除该组件吗?'
},function(res){
iYiuMessage.inload('我点的是确认');
},function(err){
iYiuMessage.message('我点的是取消');
})
以上就是 搭建直播平台,iYiuMessage 消息提示组件,更多内容欢迎关注之后的文章
标签:提示,inload,直播,组件,message,iYiuMessage,加载 From: https://www.cnblogs.com/yunbaomengnan/p/17075760.html