0
  script =@"<HTML>\n"
    "<HEAD>\n"
    "<TITLE></TITLE>\n"
    "<script language=\"javascript\">\n"
    "function openQuote(){\n"
      "  quoteForm.submit();}\n"
    "</script>\n"
   "</HEAD>\n"
    "<BODY>\n"
    "<form name=\"quoteForm\" url=\"http://localHost/Pages/CaseManagement.aspx?Page=CaseActivity\">\n"
    //    <input type="text" id="caseID" value="CA0S491"/>
   " </form>\n"
   " <input type=\"button\" onClick=\"openQuote();\" value=\"Click Me\"/>\n"
    "</BODY>"
   " </HTML>\n";

    I need to inject javascript on native button click
4

1 回答 1

1

[webView stringByEvaluatingJavaScriptFromString:script];

于 2012-08-06T12:02:38.700 回答