(正确的用户名是jinjiang,密码是maxthon)
dialog.alert(text)
Just a alert.
text
dialog.confirm(text, doYes, doNo)
Just a confirm.
text
doYes()
doNo()
dialog.show(title, contentHtml, config)
Show a dialog with a centain title, content, and config.
title
contentHtml
config
oncreate
, onclose
, css
.oncreate(dialogObj)
afterCreate(dialogObj)
onclose()
css
dialog.update(title, contentHtml, config)
Show a dialog with a centain title, content, and config.
title
contentHtml
config
onclose
, css
, beforeUpdate
, afterUpdate
.beforeUpdate(dialogObj)
afterUpdate(dialogObj)
dialog.hide()
Fire onclose
event first. If no prevent, then close the dialog.
dialog.forceHide()
Hide dialog without any confirm.
dialog.setTemplate()
Set the dialog html template.
dialog.resetTemplate()
Reset the dialog html template to default.
dialog.TEMPLATE
The default dialog html template.
dialogObj.element
The jQuery element object for the dialogObj.
dialogObj.config
The config for the dialogObj.
dialogObj.setTitle(text)
Set the title of the dialog.
dialogObj.setContent(contentHtml)
Set the content html of the dialog.