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); 本文转自黄聪博客园博客,原文链接:http://www.cnblogs.com/huangcong/p/6075723.html,如需转载请自行联系原作者