$(element).confirm(options)
options | ||||
---|---|---|---|---|
Name | Type | Optional | Description | Default Value |
msg(显示信息) | String | Optional | Confirmation message | 'Are you sure?' |
stopAfter | string | Optional | Determines when the confirmation dialog will stop being promoted. Possible values ('never', 'ok', 'cancel', 'once') | 'never'(确认的提示是否再次出现? 以何种方式出现) |
wrapper | String | Optional | Dialog wrapper | '<span></span>'(dailog 表现形式) |
eventType | String | Optional | The event that triggers the confirmation | 'click' (点击触发) |
dialogShow | String | Optional | Dialog displaying effect | 'show' (显示消失) |
dialogSpeed | String | Optional | Dialog displaying speed | 'fast'(显示速度) |
timeout | Integer | Optional | Time in milliseconds to hide the confirmation dialog | 0 (多长时间消失) |
options.buttons | ||||
ok | String | Optional | Ok caption | 'Yes' (ok按钮文字) |
cancel | String | Optional | Cancel caption | 'No' (no按钮文字) |
wrapper | String | Optional | Button wrapper | '<a href="#"></a>'(编辑按钮外表样式) |
separator | String | Optional | Separator between buttons | '/'(按钮之间文字) |
cls | String | Optional | Button class | undefined (按钮样式) |