弹出窗口
完全控制JavaScript PopUp's .
不需要额外的库。
使用方便。
事件。
回调。
完全控制。
文件
阅读以获取可能的参数。
例子
// Open URL in PopUp: page.php?id=123
const p = xpopup ( {
url : "page.php" ,
data : {
id : 123 ,
} ,
width : 400 ,
height : 400 ,
modal : true , // Block UI and show PopUp
onClose : function ( ) {
alert ( "Popup closed!" ) ;
} ,
} ) ;
// Center PopUp in screen
p . center ( ) ;
// Check if Po