I wrote a piece of code about JS:
NSString *function1 = @"function getString(){return \"123\";}";
NSString *str = [theWebView stringByEvaluatingJavaScriptFromString:function1];
NSLog(@"str: %@", str);
but the "str" is not equal to "123", the result was
str:
Any help is appreciated。