Skip to content

在app中使用,不起作用; #1

Open
@wangxiaote

Description

@wangxiaote

我在APP中写了一个webview,在其中加载网页;网页中有一个ajax请求,用于请求网页中需要显示的数据;这个数据我不想用户过于频繁的获取,一方面也不想缓存过久,所以就用了ajax-cache来做;但是看起来,每次请求都发出去了
$.ajax({
ajaxCache: {
cacheValidate: function (res, options) {
return true;
},
storageType: 'localStorage',
timeout: 30,
forceRefresh: false
},
type:"get",
url: "http:xxxxxx.xxxx.com",
async: true,
dataType:"json",
success:function(data) {

				}
			});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions