方法一:方法二:html页面: < button class = "show-btn" bindtap = "showDialogBtn" > 弹窗 < /button> 微信小程序组件 自定义弹出框 下一篇:微信小程序之几种常见的弹框提示信息实现详解