如何将ObjectiveC字符串变量传递给javascript函数?我刚刚开始使用javascript ..所以请注意我的无知...
NSString * param = @"foo"; NSString * jsCallBack = [NSString stringWithFormat:@"myFunc('%@')",param]; [webView stringByEvaluatingJavaScriptFromString:jsCallBack];