2***@qq.com
2***@qq.com
  • 发布:2020-04-03 16:56
  • 更新:2020-04-03 16:59
  • 阅读:1044

webview 打开网页,在网页中的 a 标签下载报错

分类:uni-app

<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>

<script>
export default {
data() {
return {
url: ''
}
},
onLoad(e) {
// 获取传递过来的链接
// console.log(e)
this.url = JSON.parse(e.url)
}
}
</script>

2020-04-03 16:56 负责人:无 分享
已邀请:
x***@qq.com

x***@qq.com - 疑问?的小纳?

这好像是你打开的链接无法访问吧,链接问题

  • 2***@qq.com (作者)

    浏览器中打开都没有问题,在app中用webview打开,a标签的下载会报错,创建的下载在手机中无法打开

    2020-04-03 17:10

  • 俊达

    回复 2***@qq.com: 解决了吗兄弟

    2021-11-12 10:37

该问题目前已经被锁定, 无法添加新回复