weixin_33725272 2016-02-16 05:49 采纳率: 0%
浏览 31

JS AJAX缓存响应

So, I have following ajax function:

  jQuery.ajax({
    type : 'POST',
    url : custom.ajax_url,
    dataType : 'json',
    data : {
        action : a,
        id : b,
        extra : d
    },
    success : c
  });

The data response is structured as following:

enter image description here

I want to cache the response.

How would I cache it and how do I control the cached data? (ie, accessing them, deleting, adding new response etc).

Thank you!

  • 写回答

0条回答 默认 最新

    报告相同问题?