2
我知道如何缓存它,但以后如何检索它。该文档(http://docs.trigger.io/en/v1.4/features/cache.html)只给出了一个使用图像的例子,其中检索您需要做的就是获取url。如何使用Trigger.io缓存json数据?
var showCachedLogo = function (file) {
forge.file.URL(file, function (url) {
var logo = document.createElement('img');
logo.src = url;
document.body.appendChild(logo);
});
}
除了json数据,我该怎么做?