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);