Recently, I started to learn ExtJs by myself. I downloaded some videos and searched some related articles and documents on the Internet to prepare for learning. The first time I came into contact with the ExtJs event mechanism this evening, I felt a little dizzy at first, it is somewhat different from the previous implementation of VB or pure JAVASCRIPT. Let's analyze and summarize the process based on an example. Code implementation: triggers an event when a property of a custom class is used.
Effect of the program: Click the enter button to bring up a script prompt text box asking the user to enter his name. After confirmation, the user's input name will be displayed in the name text box on the page, in addition, the page title becomes the same as the name. Then, a script is displayed, prompting the user to enter a gender. after entering the information and clicking OK, the Gender entered by the user will be displayed in the Gender text box on the page.
The Code is as follows:
Event