您的当前位置:首页正文

使用webView的时候,出现Error loading page Domain:WebKitErrorDomain Error Code:101 Description: The URL can't...

2024-11-30 来源:个人技术集锦

onShouldStartLoadWithRequest = (e) => {
// Implement any custom loading logic here, don't forget to return!
// 解决WebKitErrorDomain code:101的警告
// 
var scheme = e.url.split('://')[0]
if (scheme === 'http' || scheme === 'https') {
return true
}
return false
};

转载于:https://www.cnblogs.com/jkr666666/p/10571878.html

显示全文