码迷,mamicode.com
首页 > Windows程序 > 详细

wpf 后退父目录

时间:2019-07-25 23:24:58      阅读:151      评论:0      收藏:0      [点我收藏+]

标签: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);

  

wpf 后退父目录

标签:roo   str   目录   eth   this   main   bst   ase   string   

原文地址:https://www.cnblogs.com/springcloud/p/11247403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!