我正在尝试将 javascript 加载到 UIWebview 中,这是 javascript 代码
<script type=\"text/javascript\">
window.external =
{
'Notify': function(s) { document.location = 'acs://settoken?token=' + s; },
'notify': function(s) { document.location = 'acs://settoken?token=' + s; }
};
</script>
- (void) webViewDidFinishLoad:(UIWebView *)webView
{
//Here how to call the above javascript
[webView stringByEvaluatingJavaScriptFromString:@"";
}