2012-11-15 104 views

回答

1

我會用document.getElementsByName:

NSString* jsString = @"var myElement = document.getElementsByName(\"j_username\")[0];"; 
[theWebView stringByEvaluatingJavaScriptFromString:jsString];