Joke Collection Website - Talk about mood - The difference between jsp and html
The difference between jsp and html
Under what circumstances is Ajax inferior to jsp, php:
In terms of the real-time nature of returned queries, ajax is inferior to dynamic languages ??such as jsp.php.asp.
asp\jsp\php is a dynamic language that can interact with the server to query data.
html
It is just a static language. The so-called static means that it cannot interact with the server, query data, etc.
However, any dynamic language cannot exist alone on a website without HTML, because there is no static page display and no data can be returned to the user.
The web pages we see now are all static pages, all composed of HTML.
You can think of HTML as the interface and asp\jsp\php as the background code.
The display effect of ajax is indeed better than that of jsp, because it implements a refresh-free technology, and you can query and return data without refreshing or jumping to the web page, but it is still real-time as I said before Not easy to control.
My answer is a bit confusing, but I have basically said something about each of your questions. If you don’t know much about HTML and jsp, I suggest you not read ajax first, because you don’t understand the basics and learn it. It's very difficult.
If you have any questions, you can leave me a message.
---------------------------------------
lee_blue, did I say something wrong? It’s just that unlike you who cited too many special terms, “ajax is an asynchronous refresh technology” is the first thing everyone who learns ajax knows. In one sentence. I believe lz will understand the meaning of this sentence if he has studied it systematically, but lz has obviously not studied it before, so he would ask the above question. Do you think your answer is useful if you quote the classics? It's better than that. A real metaphor.
There is no comparison between ajax and jsp. I completely agree with this sentence, but lz asked this, I believe you should also understand what he means.
In fact, lz should ask about the difference between using ajax and not using ajax
---------------------------------- -----------------------
lz, please read my answer carefully:
ajax display The effect is indeed better than jsp, because it implements a refresh-free technology, and you can query and return data without refreshing or jumping to the web page, but as I said before, the real-time performance is not easy to control.
For example, non-ajax: page a is a registration information page. After the user has finished writing, he can click "Register" and submit it to page b (check whether the user name has been registered in page b) ), at this time, an operation of refreshing the page is generated.
And ajax can detect whether the user name is registered in the a page without refreshing the page (lz you can look at the major websites now) Most user registrations are detected using ajax technology).
However, this is very important. After ajax detects the page, someone may register the user you are registering during the period until the page is submitted. name, so you have to check again in page b.
There is another but, for example, when the server is too slow (although this is rare), it may not be possible to return to detect the user for a long time. Whether the information has been noted?
These two are the real-time issues I am referring to. It is impossible for ajax to achieve these two points.
Of course, I am not talking about ajax. The technology is not very good, but I am currently using it for the website I am working on.
------------------------------- ------------------
gt;gt;gt;gt;Can you tell me when it is not suitable to use ajax
--------------------------------------------------
lz, this question is difficult to answer.
Let me give you an example.
You can treat ajax as you are browsing the web and listening to music.
Instead of ajax, you can only listen to music after browsing the web page, not at the same time.
When there is no obvious sequence between the two things, you can use ajax technology, and this For the convenience of users.
But when there is a sequence of two things, for example, the user needs to register first and then the user can log in, then you cannot use ajax to do it at the same time, because it is error-prone. p>
- Previous article:How to cancel the hidden session in qq?
- Next article:What tips do you need to know when traveling in an RV?
- Related articles
- What is the original jadeite stone?
- Poems describing beautiful women under peach blossoms
- Eat fish and talk about it.
- Sentences about love, understanding and tolerance
- Let's talk about how you feel after reading Zhang Yin's trumpet. ?
- A poem with the word "Kang"
- On the types of novels
- Talk about the principle and usage of compass.
- What are the classic quotations about people who watch your jokes behind your back?
- A red shirt with black trousers, with its own aura, are you looking forward to it?