We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当网络请求出错时,显示 neterror.html 页面。但点击“重新加载“不会触发页面重载。
neterror.html
neterror.html 里
<p class="detail_neor_btn" onClick="location='ax_network_error'">重新加载</p>
请求的 ax_network_error 会被视作相对路径,被拼接成
ax_network_error
file:///app_path/AXWebViewController.bundle/html.bundle/ax_network_error
而 webView: decidePolicyForNavigationAction:decisionHandler: 里的判断是
webView: decidePolicyForNavigationAction:decisionHandler:
if ([navigationAction.request.URL.absoluteString isEqualToString:kAX404NotFoundURLKey] || [navigationAction.request.URL.absoluteString isEqualToString:kAXNetworkErrorURLKey])
条件无法通过,导致重载无限。
The text was updated successfully, but these errors were encountered:
v0.7.1已发布.
v0.7.1
Sorry, something went wrong.
现在在用0.7.2版本,但当网络请求出错时,显示 neterror.html 页面。但点击“重新加载“还是不会触发页面重载。
No branches or pull requests
问题
当网络请求出错时,显示
neterror.html
页面。但点击“重新加载“不会触发页面重载。原因
neterror.html
里请求的
ax_network_error
会被视作相对路径,被拼接成而
webView: decidePolicyForNavigationAction:decisionHandler:
里的判断是条件无法通过,导致重载无限。
The text was updated successfully, but these errors were encountered: