标签:roo str 目录 eth this main bst ase string
string rootPath = "";
string BaseDirectoryPath = AppDomain.CurrentDomain.BaseDirectory;
rootPath = BaseDirectoryPath.Substring(0, BaseDirectoryPath.LastIndexOf("\\"));
rootPath = rootPath.Substring(0, rootPath.LastIndexOf("\\"));
rootPath = rootPath.Substring(0, rootPath.LastIndexOf("\\"));
string path = rootPath + @"..\Resource\Echarts\echart.html";
or this method
string url = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Resource\Echarts\echart.html";
Web.Navigate(url);
标签:roo str 目录 eth this main bst ase string
原文地址:https://www.cnblogs.com/springcloud/p/11247403.html