Live2D 看板娘 / Demo
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: 一、创建一个控制台应用程序 二、创建一个HTML文件夹用来存放HTML 三、代码实现 static void Main(string[] args) { //当前应用程序集的执行的上级目录 string dir = Path.GetFullPath("../../"); string path = 阅读全文
posted @ 2020-10-16 10:27 KysonDu 阅读(2356) 评论(2) 推荐(0) 编辑
摘要: /// <summary> /// log日志,txt的 /// </summary> /// <param name="Log1">内容</param> /// <param name="name">名字</param> /// <param name="path">路径</param> publ 阅读全文
posted @ 2020-10-16 09:41 KysonDu 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: public static void DeleteFile(string fileUrl) { string file = System.Web.HttpContext.Current.Server.MapPath(fileUrl); if (System.IO.File.Exists(file)) 阅读全文
posted @ 2020-10-15 17:51 KysonDu 阅读(2369) 评论(0) 推荐(0) 编辑
摘要: if (Directory.Exists(path) == false) { Directory.CreateDirectory(path); } 阅读全文
posted @ 2020-10-15 17:33 KysonDu 阅读(2086) 评论(0) 推荐(0) 编辑
摘要: //当前应用程序集的执行目录 string dir = AppDomain.CurrentDomain.BaseDirectory; //当前应用程序集的执行的上级目录 dir = Path.GetFullPath(".."); // 读取到当前虚拟目录的根目录(MVC) string urlPat 阅读全文
posted @ 2020-10-15 17:10 KysonDu 阅读(2288) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页