flutter - webview_flutter target _blank is not working
问题描述
I am using webview_flutter 0.3.3+1
, my initialUrl loads fine, It contains various links, when clicking on a link it navigates properly but if a link has target set to _BLANK, it doesn't do anything.
WebView(
initialUrl: 'https://SOME_URL',
javascriptMode: JavascriptMode.unrestricted,
)
This Works
<a href="http://example.com">Link A</a>
below doesn't work, it should open external browser but click doesn't take anywhere
<a href="http://example.com" target="_BLANK">Link B</a>
解决方案
此问题已在webview_flutter v0.3.19+6
推荐阅读
- hive - Mapreduce和hive的区别
- swift - 如何将 Sqlite 中的图像显示到 uicollectionview
- java - Java JAR 占用了高 CPU 使用率和内存消耗
- excel - 仅从 Excel 中的列中选择日期单元格
- c# - “schoolmanamgement.MainForm”不包含带有 7 个参数的构造函数
- qt - Qt::ToolTipRole 没有被触发
- javascript - 如何使用我们的数据值计算 dataLabels 下的 X 和 Y 坐标是动态的
- linux - 使用 hashcat,其中散列的前 10 个字符是已知的
- javascript - 需要一次选择一张图片
- javascript - 如何将分号分隔的数据转换为 DataTable 单元格中的单独行