If there are two controls where the ID of control A is the same as the name of control B, an error will be reported. ID can not exist in the same situation as we all know, and different controls, name can not be the same, I’m afraid only encountered people know, not, I met, the result of B.name==A. ID, B style disorder, find the reason for a long time.

“What a pervert! I feel that while using EXT brings convenience, it is sometimes difficult to wait on, and it is difficult to debug when problems occur.

So why use ext.js in the front end?

In fact, ext.js is just one of many javascript frameworks. Instead of ext.js, you might as well use easyUI, BlackBone or whatever.

What if we don’t have to? For example, I develop asp.net page, web form mode, can also use service control oh! MVC, using jquery, a little more hard, write a little more, but flexible.

Shit, stupid. If there’s a frame, why not use it? For example, why do you need to write your own forms when others have done so well?

In general, these javascript frameworks, as they’re called, are a kind of front-end MVC architecture. BS program is natural MVC architecture, M, DB server; C,WEB server, V: browser, front end. Now, on the front end you have MVC, MVC within MVC, fighting chicken within MVC.

Why is a javascript framework a front-end MVC architecture? Because the data you take from the WEB server and hand it to these frameworks, they render it exactly as you want, taking over the user’s interactions with the page and requests to the server.

After the back-end data and business logic is processed in the WEB server, it is forwarded to the front end, so there is no WEB server, the front end can do what it wants to do, it doesn’t matter, just happy, so I like to use those frameworks, don’t have to do everything yourself, in fact, not so good as others do. Of course, there are special workers, in today’s increasingly sophisticated division of labor, should be equipped with a special front siege division.