/**
* 弹框提示
* @param ImgSrc 提示图片 值:1=>成功;2=>失败;3=>加载中
* @param Hint 提示内容
* @param Keep 提示显示时间
* @param Urles 调转连接
* @constructor
*/
function massage(type,Hint,Keep,Urles) {
var dom = "<div id='Popout' style='font-weight: 800;font-size:23px;color: "+ type +"'>" + Hint+ "</div>" ;
$("#daichuhe").after(dom);
var times = setTimeout(function () {
clearTimeout(times);
$("#Popout").remove();
if(Urles){
window.location.href = Urles;
}
},Keep?Keep:2000);
}
只需要在html中调用该方法即可