let tips = new ShenTips();
tips.tips({ msg: "你今天是否比昨天更帅了呢", time: 500 });
tips.alert({ title: "提示", msg: "你今天是否比昨天更帅了呢", time: 500, options: ["是的呢"], confirm: function() { console.log("我确实比昨天更帅了"); } })
tips.confirm({ title: "请确认", msg: "是否提交试卷", options: ["继续答题", "提交试卷"], time: 500, close: false, cancel() { console.log("点击了取消按钮"); }, confirm() { console.log("点击了确认按钮"); that.close(); } })