Home  >  Article  >  Web Front-end  >  When using the Get method of Jquery Ajax, you need to pay attention to the URL location_jquery

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

WBOY
WBOYOriginal
2016-05-16 18:08:261038browse

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()

Statement:
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