摘要: git clone http://邮箱(或用户名):密码@仓库 命令: git clone http://xw%40qq.com:xw@git.test.com/abc/demo 示例: 邮箱 : xw@qq.com密码: xw仓库: http://git.test.com/abc/demo注意: 阅读全文
posted @ 2020-09-03 15:00 青橙时光 阅读(1627) 评论(0) 推荐(0) 编辑
摘要: public class SecurityCode { /// <summary> /// 生成随机的字符串 /// </summary> /// <param name="codeCount">验证码长度</param> /// <returns></returns> public string 阅读全文
posted @ 2020-01-13 13:41 青橙时光 阅读(251) 评论(0) 推荐(0) 编辑
摘要: string fullPath = @"\WebSite1\Default.aspx"; string filename = System.IO.Path.GetFileName(fullPath);//文件名 “Default.aspx” string extension = System.IO. 阅读全文
posted @ 2020-01-10 15:57 青橙时光 阅读(4463) 评论(0) 推荐(0) 编辑
摘要: 1.创建泛型哈希表,然后加入元素 Dictionary<string,string> openWith=new Dictionary<string, string>(); openWith.Add("txt","notepad.exe"); openWith.Add("bmp","paint.exe 阅读全文
posted @ 2020-01-10 15:43 青橙时光 阅读(928) 评论(0) 推荐(0) 编辑
摘要: public class EncryptMethods { /// <summary> /// Md5加密 /// </summary> /// <param name="str">时间+随机数+令牌</param> /// <returns></returns> public string Enc 阅读全文
posted @ 2020-01-10 15:34 青橙时光 阅读(304) 评论(0) 推荐(0) 编辑
摘要: name为自定义节点的名称,type为自定义节点解析文件的命名空间和自定义节处理程序的类名 1. 在<configSections>节点中注册你所要定义的节点名称及用于处理该节点的配置节处理程序。代码如下: <configSections> <section name="dbFactory" typ 阅读全文
posted @ 2020-01-10 15:31 青橙时光 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1.在安装nginx前首先要确认系统中是否安装了gcc、pcre-devel、zlib-devel、openssl-devel。 安装命令: yum -y install gcc pcre-devel zlib-devel openssl openssl-devel 2.nginx下载地址:http 阅读全文
posted @ 2020-01-10 15:15 青橙时光 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-26 14:49 青橙时光 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: 1.查看防火墙状态 查看防火墙状态 systemctl status firewalld 开启防火墙 systemctl start firewalld 关闭防火墙 systemctl stop firewalld 开启防火墙 service firewalld start 若遇到无法开启 先用:s 阅读全文
posted @ 2019-12-26 14:46 青橙时光 阅读(15044) 评论(0) 推荐(1) 编辑
摘要: js获取页面完整地址: window.location.href; var s =" https://ejym.baidu.com"; var h = s.split(".")[0]; var a = h.split("//")[1]; alert(a); a的结果是:ejym 阅读全文
posted @ 2019-01-18 17:19 青橙时光 阅读(3293) 评论(0) 推荐(0) 编辑