您的位置:首页 > Web前端 > JQuery

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

2016-11-17 22:07 281 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: