';
+ toastTemplate += '
';
+ toastTemplate += message;
+ toastTemplate += '
';
+ toastTemplate += '
';
+ toastTemplate += '
';
+
+ // 利用 js 生成一个临时 toast 弹窗后自我销毁
+ var $toast = $(toastTemplate).appendTo('body');
+ var handler = window.setTimeout(function () {
+ window.clearTimeout(handler);
+ $toast.toast('show');
+ }, 200);
+
+ var handlerDismiss = window.setTimeout(function () {
+ window.clearTimeout(handlerDismiss);
+ //$toast.remove();
+
+ // 回调重新排列方法
+ }, 4400);
},
tooltip: function (id, method) {
var $ele = $(id);