ExtJS may use a lot of people, but ExtJS 6.X is much less, at the time of contact with a lot of pits, here probably tidy up.
Two official websites on the line
Document API Address: http://docs.sencha.com/extjs/6.2.0/
Official website: https://www.sencha.com/extjs/6.2.0/
ExtJS two parts One is the classical one is the modern the former is the PC the latter is the mobile end,
Here's the first classical.
When the program loads, it executes the entire program's global file App.js, followed by the classical configuration file application
So some of the things that need to be declared globally can be written here, because I'm using websocket here, so I've defined a global object directly in application, and ExtJS 6.x uses the MVC pattern View definition is simple
The corresponding controller
There are two ways to write controls, one is to take advantage of initialization, so you can add a lot of your own logic
The other is to write directly
This will load both the control and the layout as the file loads. To dynamically generate controls inside a controller just create, take a window frame for example
There are many ways to assign a value to a control in a way that is declared good one store and then called in the desired control.
Of course there is a lot of knowledge, look at the official documents (although English) will be. Get over here first!
Use of ExtJS 6.x