uniapp长按实现图片保存
html部分代码:
<image src='https://ykrj.icu/files/bxshdt_1.jpg' class="tui-activity-img" mode="widthFix" @longtap="savePosterPath(url)"></image>
js端代码
savePosterPath(url) {
uni.downloadFile({
url,
success: (resFile) => {
.
原创
2021-03-02 14:51:02 ·
3538 阅读 ·
2 评论