📄 tools.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Text.RegularExpressions;
namespace Surance.Utility
{
public class Tools
{
private static string picturePath = @"~\UploadImg\";
public static string GetDefaultPicture()
{
return "images/upload/btn_download.png";
}
public static string GetPictureSavePath()
{
return HttpContext.Current.Server.MapPath(picturePath);
}
public static string GetPicturePath()
{
return picturePath;
}
public static string GetPictureName()
{
return DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString() + DateTime.Now.Millisecond.ToString();
}
public static string removeTags(string html)
{
string temp = Regex.Replace(html, "<[^>]*>", "");
return temp;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -