The difference between ajax and EL

The difference between ajax and EL

EL expression:
**

advantage Disadvantages
Suitable for writing on page jump rendering, such as modifying information, initializing home page information, etc. Every time the data is refreshed, the entire page will be refreshed like a form form. The user refreshes slowly and feels uncomfortable.

Ajax

advantage Disadvantages
Can be executed asynchronously, cumbersome but flexible, mainly because $ ((function) {} can be refreshed when entering the page, without page jump, relatively speaking such as paging function, chat information, can increase the user experience Cumbersome

Summary:
Look at my description of the advantages and disadvantages, know who is okay, EL is simple but not scalable, and you need to manually click the button to refresh, EL is not suitable for mobile phones, etc., limited to this, few applications, of course It can be used when there are not many operations on a simple page. After all, the forming is fast and can be completed quickly.

Published 1 original article · liked 0 · visits 15

Guess you like

Origin blog.csdn.net/code_mzh/article/details/105493242