JQuery Ajax Cache Cache Problem _jquery

Source: Internet
Author: User

In jquery, with $.ajax.
Then, when you specify an AJAX attribute, you use: ' false '.

This is where the hateful JavaScript feature comes in.

In jquery, for most of the time, attributes are used to "cause".
Otherwise it is easy to become a variable name. Red, for example, is not the same as the lead. But it can also be recognized as a cause. So the habit is all right.


However, false is a special case.
If caused, the result:
' false ' is treated as true. Because only the empty string is true.


For example: in the browser address bar, enter:
Javascript:alert (' false '? ') True ': ' false ');
The result will be: true.


Direct result: Ajax requests do not request again, but to slow access. And I think the results will be very different ....

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.