showDialog() 显示对话框

2018-02-07 15:08 更新

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 秒后页面跳转"

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号