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

时间:2023-03-09 09:38:37
黄聪: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);