szhtest 发表于 2024-10-5 13:49:55

弹出框如何关闭?

我在门户管理的脚本中用o2.DL打开了一个弹窗,弹窗里面html写了一个按钮,现在我在“onpostshow”事件内写了这个按钮的点击事件:点击即跳转到其他门户界面,同时this.close()关闭该弹窗。可现在成功跳转后弹窗关闭不了,报错:this.close is not a function

如何解决?我换用self.close()也是一样的

OA版本8.2.3

szhtest 发表于 2024-10-5 14:10:14

已解决,要用dialog.close

xadmin 发表于 2024-10-12 09:50:39

szhtest 发表于 2024-10-5 14:10
已解决,要用dialog.close

:handshake
页: [1]
查看完整版本: 弹出框如何关闭?