1. Ext. MessageBox
Ext. MessageBox provides common prompt box functions. Ext. MSG is an object exactly the same as it, but its name is different. Ext. MSG has common alert, confirm, promt, show and other methods, which are very simple.
The following is an example. Function parameters of extjs can be separated by a comma or an object with the parameter name: parameter value. The example below will also be shown.
<% @ Page Language = "C #" autoeventwireup = "true" codefile = "jshelloworld. aspx. cs" inherits = "pagetestjs_jshelloworld" %> <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
The parameters of each MSG method are similar, mainly including setting the title and prompt, and setting the button. Note that the message box of MSG is different from the default prompt box of JavaScript, and its pop-up does not block otherCode. To execute some code after the pop-up box is closed, you must input a function FN to it. The last example clearly shows this. After a prompt box is displayed, the following code is still executed. When the pop-up box is closed, the showoutput function is executed. The effect is as follows: