The style class part of the CSS stylesheet in the ExtJS control is somehow overwritten
Cause of the problem:
Why is it?
Because when we call the CSS style of the component W, we write our own CSS style A,ext component and the CSS style b,a is we use CLS: ' A ' to put in. So what is this w that repeats in two different styles?
This depends on the introduction of CSS style sheet order, if the first to introduce their own write, and then introduce the EXT, then the browser first read their own CSS style, and then read the style of ext. As a result, our own CSS style was overwritten.
Workaround:
That's right.
The variable in the JS file does not define the problem
Problem Description:
Readermanagementdata.js
Readermanagementfunction.js
Html
Results:
Note: Filterbuttonarray is also a variable parameter defined in the Readermanagementdata.js file, which is also called in readermanagementfunction.js, resulting in an error.
Workaround:
A.js file (readermanagementdata.js)
B.js file (readermanagementfunction.js)
HTML file
This is the right order. For example, like this JS file call JS file, it is necessary to introduce them in the same HTML and then can be used directly, no longer b.js call a.js in the same page data, in the B.js and introduce a.js file code.
The style class in the CSS file is overwritten, the variables in the JS file do not define the problem