//配置
var my_cfg={
toastTime:6000,// toast存在时长
};
var makeToast=function (text){
console.log("显示toast");
$.mobile.loading( "show", {
text: text,
textVisible: true,
theme: "a",
textonly: true,
html: ""
});
setTimeout(function() {
hideToast();
}, my_cfg.toastTime);
// }, dcfg.toastTime);
};
//隐藏Toast
var hideToast=function(){
console.log("隐藏toast");
$.mobile.loading( "hide" );
};
jqm写toast
最新推荐文章于 2020-05-15 15:20:51 发布