为什么Blazor wasm项目无法在iPAd和iPhone的IOS上加载

在带有Google chrome和Firefox的win10上加载默认演示项目效果很好, 在装有Safari的Mac上,但在IOS(iPad和iPhone)上仅显示“正在加载...”消息。

我做错了什么?

gaoy969 回答:为什么Blazor wasm项目无法在iPAd和iPhone的IOS上加载

Blazor wasm目前在iOS 13上存在一些问题。有关其他解决方法,请参见此线程,并保持最新状态:https://github.com/mono/mono/issues/16986

尤其是,您必须在index.html中的blazor.webassembly.js脚本之前添加<script>var Module;</script>

然后,您要复制blazor.webassembly.js文件并进行自定义版本并应用以下更改: enter image description here enter image description here

这些问题有望在即将发布的版本中解决。

本文链接:https://www.f2er.com/3036085.html

大家都在问