$(document).on("click", "#i1", function() {
$.toast("操作成功!");
});
$(document).on("click", "#i2", function() {
$.toast("取消操作", "cancel");
});
$(document).on("click", "#i3", function() {
$.toast("禁止操作", "forbidden");
});
$(document).on("click", "#i4", function() {
$.toast("纯文本", "text");
});
$(document).on("click", "#i5", function() {
$.showLoading();
setTimeout(function() {
$.hideLoading();
}, 2000)
});
$(document).on("click", "#i6", function() {
$.toptip('操作成功', 'success');
});
$(document).on("click", "#i7", function() {
$.toptip('操作失败', 'error');
});
$(document).on("click", "#i8", function() {
$.toptip('警告', 'warning');
});
$.toast.prototype.defaults.duration = 1000;
一键复制
编辑
Web IDE
原始数据
按行查看
历史