update README.md.
Signed-off-by: 面条侠 <wangxinxin51@h-partners.com>
This commit is contained in:
parent
9f32500c4d
commit
dc61c92a03
|
@ -185,19 +185,22 @@ struct testImageKnifeCache {
|
||||||
Button('缓存图片')
|
Button('缓存图片')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
this.index_ = 1;
|
this.index_ = 1;
|
||||||
imageKnife?.isUrlExist(this.url, CacheType.Cache, this.comSize);
|
imageKnife?.isUrlExist(this.url, CacheType.Cache, this.comSize).then(this.loadSuccess)
|
||||||
|
.catch(this.loadError);
|
||||||
})
|
})
|
||||||
|
|
||||||
Button('磁盘图片')
|
Button('磁盘图片')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
this.index_ = 2;
|
this.index_ = 2;
|
||||||
imageKnife?.isUrlExist(this.url, CacheType.Disk, this.comSize);
|
imageKnife?.isUrlExist(this.url, CacheType.Disk, this.comSize).then(this.loadSuccess)
|
||||||
|
.catch(this.loadError);
|
||||||
})
|
})
|
||||||
|
|
||||||
Button('默认')
|
Button('默认')
|
||||||
.onClick(() => {
|
.onClick(() => {
|
||||||
this.index_ = 2;
|
this.index_ = 2;
|
||||||
imageKnife?.isUrlExist(this.url);
|
imageKnife?.isUrlExist(this.url).then(this.loadSuccess)
|
||||||
|
.catch(this.loadError);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue