1

如何在现有 dom 中的 HD 上运行 javascript?

            java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(java.util.logging.Level.OFF);
            java.util.logging.Logger.getLogger("org.apache.http").setLevel(java.util.logging.Level.OFF);
            LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
            URL url = new URL ("http//google.com");

            WebClient webClient = new WebClient();
            HtmlPage page = webClient.getPage(url);

我想在“页面”中运行“88349.js”并获取该 url 的返回数据。

4

0 回答 0