bootstrap popup dialog bootbox.confirm

1. Effects

2. Process

2.1 Introduced: bootbox.min.js

2.2 Popup page

  bootbox.confirm({
                            message: "Logout the current user?", 
                            buttons: {
                                confirm: {
                                  label: "Confirm"
                                },
                                cancel:{
                                    label: "Cancel"
                                }
                              },        
                            callback: function(result) {
                                if(result) {
                                    location.href = "${pageContext.request.contextPath }/destroyUser.action";  
                                }
                            }
                        }); 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325391957&siteId=291194637