黄聪:GeckoFX如何引用jquery文件并执行自定义JS

            var jquery_script = gwb.Document.CreateElement("script");
            jquery_script.SetAttribute("src", "http://common.cnblogs.com/script/jquery.js");
            gwb.Document.GetElementsByTagName("head").First().AppendChild(jquery_script);

            var script = gwb.Document.CreateElement("script");
            script.TextContent = "alert(jQuery.fn.jquery);";
            gwb.Document.GetElementsByTagName("head").First().AppendChild(script);
原文地址:https://www.cnblogs.com/huangcong/p/6075723.html