Home >Web Front-end >JS Tutorial >When using the Get method of Jquery Ajax, you need to pay attention to the URL location_jquery
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()