Stop jQuery .load response from being cached

前端 未结 14 2212
迷失自我
迷失自我 2020-11-22 03:54

I have the following code making a GET request on a URL:

$(\'#searchButton\').click(function() {
    $(\'#inquiry\').load(\'/portal/?f=searchBilling&pid=         


        
14条回答
  •  忘掉有多难
    2020-11-22 05:01

    Another approach to put the below line only when require to get data from server,Append the below line along with your ajax url.

    '?_='+Math.round(Math.random()*10000)

提交回复
热议问题