h5的工程,其中调用了一个原生的插件,插件中加载了webview,现在我想关闭这个插件的时候跳转到某一个本地的h5页面,而不是返回调用这个插件的h5页面,怎么实现?哪位大神能解答一下?谢谢大家
NSString loadpath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Pandora/apps/mobileBank/www/views/login/forget_acc.html"];
NSString jsStr = [NSString stringWithFormat:@"window.location.href = '%@'",loadpath];
[webView stringByEvaluatingJavaScriptFromString:jsStr];
现在是这样写的 无效。。。
0 个回复