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

Posted 黄聪

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了黄聪: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);

 

以上是关于黄聪:GeckoFX如何引用jquery文件并执行自定义JS的主要内容,如果未能解决你的问题,请参考以下文章