Detailed explanation of Ext.MessageBox.confirm() Displays a confirmation dialog box, used to replace the JavaScript standard confirm() method, with two buttons "Yes" and "No" if It provides a callback function, which will be called after a button is clicked (including the push button in the upper right corner), and the id of the clicked button will be passed to the callback function as the only parameter.
Call format:
confirm(String title,String msg,[function fn],[Object scope])
Parameter description:
Ext.MessageBox.alert();//Related content
Return value:
Ext.MessageBox
Code example:
The usage of Ext.MessageBox.confirm is similar to alert. The confirmation dialog box is also executed asynchronously and will not cause blocking. Therefore, the code that can only be executed after the user confirms also needs to be placed in the callback function. . The id passed in the callback function is the only way to distinguish the user's selection, and different operations are performed by judging this parameter.