var script = geckoWebBrowser.Document.CreateElement("script"); script.TextContent = "vm.Data.单号=‘123a789456a123456‘;"; geckoWebBrowser.Document.GetElementsByTagName("head").First().AppendChild(script);
原文:https://www.cnblogs.com/tolingsoft/p/11480488.html