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


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
};