2021-10-07

点击弹出提示框,点击确认跳转链接,点取消回到当前页面。

 

关于showdialog的参数

function showDialog(msg, mode, t, func, cover, funccancel, leftmsg, confirmtxt, canceltxt, closetime, locationtime)

 

 

key 默认值 含义 可选值及解释
msg (必填) 提示信息内容  
mode 'alert' 对话框模式 alert/right:有确定按钮
confirm:有确定和取消按钮
notice:有确定按钮
info:没有按钮
t '提示信息' 对话框标题  
func   点“确定”执行的函数  
cover 1 (mode = 'info' 时为 0) 是否显示一个遮罩覆盖整个页面 1:是
0:否
funccancel   点“取消”执行的函数  
leftmsg   底部左侧信息  
confirmtxt '确定' 确定按钮的文字  
canceltxt '取消' 取消按钮的文字  
closetime   自动关闭的时间,单位“秒”
leftmsg 强制更改为“n 秒后窗口关闭”
 
locationtime   自动跳转时间,单位“秒”
leftmsg 强制更改为“n 秒后页面跳转”
打赏

好文章,更需要你的鼓励

本文由 氢设计 创作,除注明转载/出处外,均为本站原创,转载前请务必署名

最后编辑时间为:2021-11-23 10:21:01

本文链接:https://www.h2sheji.com/show-103.html