Home >Web Front-end >JS Tutorial >When importing extjs and jquery files, use the conflict resolution method_extjs
1. When working on a recent project, in the html page, if the jquery file is not imported, it can be saved normally, but after importing the jquery file, it cannot be saved
After debugging, I found that the imported The jquery file conflicts with the existing extjs file (the reason is the conflict of the $ symbol)
There is a conflict between jQuery and ExtJS, but it is ok under the non-IE kernel. It is due to the conflict of the $ symbol. Solved The way is to replace jQuery's $ symbol with something else. The code is as follows: