DialogBox encapsulates 11 styles of dialog boxes, each style provides an interface to call, developers can according to the style of each interface to define the text, picture, text and text on the dialogBox
DialogBox module 11 styles respectively to achieve a simple effect, which will alert method to do two styles, if you think I write the style ugly enough, please do not spray me, because I am a program ape [ha ha], if you accept directly use your project, Otherwise, you can define more elegant styles based on official documents and your own product requirements.
Next, I will give you a brief introduction of some of my commonly used methods, and you can see the video effect of the module and start to do it yourself.
- alert()
This method is a combination of the system’s Alert and confirm methods, with an icon on top of it.
- sendMessage()
As the name suggests, this method appends a dialog box on top of alert, which is called to fetch the entered value.