/* * 提示框 */ window.showTip=function(msg){ var tip='<div class="dcxx"><span class="promptMsg">msg</span></div>'; var $tip=$(tip).appendTo(window.top.document.body); $tip.stop(true); $tip.find('.promptMsg').html(msg); $tip.show(); $tip.fadeIn(500).delay(2000).fadeOut(500); window.top.setTimeout(function(){ $tip.remove(); },3000); };
用js寫了個tip彈窗,切換頁面彈框不會消失?
守著星空守著你
2018-09-04 12:13:59