jquery mobile popup弹窗经验

1、popup弹窗事件的监听方法:

$("#myPopupDialog").bind('popupbeforeposition',function(){

    console.log("打开之前")
});

$("#myPopupDialog").bind('popupafterclose',function(){

    console.log("关闭之后")
});

2、popup的弹出和触发,使用代码调用;

$('#popText').html(alertText);
$('#myPopup').popup("open");
setTimeout("$('#myPopup').popup('close')",500);
发布了53 篇原创文章 · 获赞 2 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/frankxixu/article/details/89090304