Home  >  Q&A  >  body text

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

iOS webview怎么添加localStorage?

现在这么挂的没有挂上

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

reply all(1)I'll reply

  • 阿神

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

    My project is the App side that is distinguished by modifying the useragent

    reply
    0
  • Cancelreply