更新时间:2020-07-20 15:52:47
1.alert 2.confirm
<link rel="stylesheet" href="TGTool.css"> <script src="TGTool.js"></script>
1.alert
var tg = TGTool(); tg.info("提示"); tg.success("成功"); tg.warning("警告"); tg.error("失败");
2.connfirm
var tg = TGTool(); TG.confirm("提示","请确认",callback1,callback2);//callback2可选