Heim  >  Fragen und Antworten  >  Hauptteil

objective-c - iOS webview怎么添加localStorage?

iOS webview怎么添加localStorage?

现在这么挂的没有挂上

[myWebView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"window.localStorage.setItem(%@,%@)", @"app-jump-url", @"/mine"]];
PHP中文网PHP中文网2741 Tage vor581

Antworte allen(1)Ich werde antworten

  • 阿神

    阿神2017-04-17 18:02:02

    我项目是通过修改useragent区分的App端

    Antwort
    0
  • StornierenAntwort