bModal.msg({content:'欢迎使用bool Modal!'}); bModal.msg({content:'欢迎!',shake:true}); bModal.msg({content:'欢迎使用bool Modal!',sound:'sounds/win8.wav'});
bModal.alert({title:'提示',content:'操作成功',icon:1}); bModal.alert({title:'提示',content:'操作成功',icon:2,shake:true}); bModal.alert({title:'提示',content:'操作成功',icon:3,sound:'sounds/xp.wav'});
bModal.confirm({title:'提示',content:'操作成功',icon:4,sound:'sounds/xp.wav'},function(res){ console.log(res); if( res ){ bModal.msg({content:'你点击了确认'}); }else{ bModal.msg({content:'你点击了取消'}); }
});