【发布时间】:2013-10-27 08:17:11
【问题描述】:
如何在网站上向移动浏览器显示一条消息在短时间内使用jquery-mobile后消失
如 gmail 执行附件下载时显示
【问题讨论】:
标签: jquery css jquery-mobile dialog
如何在网站上向移动浏览器显示一条消息在短时间内使用jquery-mobile后消失
如 gmail 执行附件下载时显示
【问题讨论】:
标签: jquery css jquery-mobile dialog
嗯.. 快拍:
var shortTime = 5; // for 5 seconds
$('body').on("yourevent",function(e) {
$('body').append($("<div id="startDl">Starting download</div>"));
setTimeout(function(e) {
$('body').remove($("#startDl"));
}, shortTime);
});
还有更好的方法......例如在你的函数 startDownload() 或其他任何回调之后删除元素..
【讨论】: