1. ios中的webview加载的URL不可以含有中文,解决办法说将中文字符转码,

如下:

- (NSString *)URLEncodeString {
    NSCharacterSet *set = [NSCharacterSet URLQueryAllowedCharacterSet];
    NSString *encodedString = [self stringByAddingPercentEncodingWithAllowedCharacters:set];
    return encodedString;
}

  

 
2.window.location.href webkit不兼容
  window.event.returnValue = false;
在location.href后加上后修复。

 

 
2.window.location.href webkit不兼容
  window.event.returnValue = false;
在location.href后加上后修复。

 

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-06-20
  • 2021-09-07
  • 2022-12-23
相关资源
相似解决方案