winform WebView2 - 远程和本地资源的写法区别
远程
this.webView21.Source = new System.Uri("http://localhost:8080/#/", System.UriKind.Absolute);
本地
string path = Path.GetFullPath(Path.Combine(Global.ExePath, Global.VueHtmlPath)); this.webView21.Source = new Uri(@"file:///" + path);
本文来自博客园,作者:岑惜,转载请注明原文链接:https://www.cnblogs.com/c2g5201314/p/18230392
响应开源精神相互学习,内容良币驱除劣币