Home > Web Front-end > JS Tutorial > body text

When using the Get method of Jquery Ajax, you need to pay attention to the URL location_jquery

WBOY
Release: 2016-05-16 18:08:26
Original
1059 people have browsed it

Tip: We must always pay attention to browser caching. When using the GET method, we must add the timestamp parameter (net Date()).getTime() to ensure that the URL sent is different each time to avoid browser caching.

Tip: When a space is added after the url parameter, such as " ", an "unrecognized symbol" error will appear, and the request can still be sent normally. However, the HTML cannot be loaded into the DOM. The problem is solved after deleting it.

$("#divResult").load("../data/AjaxGetCityInfo.aspx?resultType=html" "×tamp=" (new Date()).getTime()

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!