代码整理
大海1010&&
一名普通的老码农
展开
-
nodejs vue vue/cli 安装流程及错误处理 常用指令
win10电脑下 nodejs vue vue/cli 安装流程及错误处理 常用指令原创 2022-09-09 17:04:02 · 206 阅读 · 1 评论 -
数据库常用语句
SQLserver执行sql文件 Mysql附加数据库原创 2022-08-30 22:13:39 · 180 阅读 · 0 评论 -
数据库性能查询
SELECT(total_elapsed_time / execution_count)/1000 N'平均时间ms',total_elapsed_time/1000 N'总花费时间ms',total_worker_time/1000 N'所用的CPU总时间ms',total_physical_reads N'物理读取总次数',total_logical_reads/execution_count N'每次逻辑读次数',total_logical_reads N'逻辑读取总次数',total_原创 2021-12-24 17:49:40 · 434 阅读 · 0 评论 -
代码搜索平台
资源代码搜索原创 2021-03-19 11:42:44 · 2046 阅读 · 0 评论 -
前端技术
暂记下,闲下来整理技术点vuehttps://www.runoob.com/vue2/vue-tutorial.htmlangularhttps://angular.cn/gulphttps://www.gulpjs.com.cn/docs/getting-started/explaining-globs/webpackhttps://www.webpackjs.com/原创 2020-05-11 09:30:56 · 152 阅读 · 0 评论 -
SQL-SERVER语法特性
--从一张表中取数据创建并插入一张新表 SELECT * into famen from Sheet1$ where Sheet1$.Subsid in('ab')原创 2019-11-18 10:58:58 · 347 阅读 · 1 评论 -
c# 语法糖
经过简化的Propertypublic string MyName { get; set; }public string MyName { get; protected internal set; }func与actionFunc是一个.Net内置的委托。Func<Result>,Func<T1,Result>是一个.Net内置的泛型委托。Func&...原创 2019-05-12 18:29:49 · 1037 阅读 · 0 评论 -
.net MVC Core新特性代码
[Validate]数据验证[Validate(CheckApp = false)]富文本验证取消CSHTML页面特性分部视图 占位符增加@RenderSection("header", false)去除false后页面如果不实现将报错cshtml页面调用JS和CSS@section header{ //样式表及JS文件引用}@Html.RawViewData:...原创 2019-05-12 18:07:03 · 166 阅读 · 0 评论 -
ENUM 枚举类型互换
Enum-->StringEnum.GetName(typeof(Colors), Colors.Blue))String-->Enum(Colors)Enum.Parse(typeof(Colors), "Red")Enum-->Int(int)Colors.RedInt-->EnumColors color = (Colors)2...原创 2019-04-30 10:03:31 · 206 阅读 · 0 评论 -
List 数组 Dictionary 总结 --持续更新
List集合中查找元素//字符串查询var BytList = new List<string>(){ "ad","bb" };var byt = BytList.Where(x => x.IndexOf("a") >= 0).ToList();var BytList = new List<object>(){...};//单个条件var By...原创 2019-04-23 13:41:23 · 712 阅读 · 0 评论 -
谷歌浏览器播放海康威视监控
1:下载ffmpeg官网:http://ffmpeg.org/解压后,电脑右键属"属性"选择“高级系统属性”下在“环境变量”中的【PATH】路径追加 “c:\ffmpeg\bin;”2:利用ffmpeg将RTSP视频转成HLSffmpeg -i rtsp://用户名:密码@IP地址:554/H.264/ch1/main/av_stream -fflags flush_packets ...原创 2019-04-15 11:40:20 · 18196 阅读 · 1 评论 -
执行cmd程序
public static string RunCommand(string cmd) { try { //创建一个进程 Process p = new Process(); p.StartInfo.FileName = "cmd.exe"...原创 2019-01-09 10:09:28 · 536 阅读 · 1 评论 -
邮件发送
public static string fromEmail = "[email protected]";//邮件发送方 public static string fromPwd = "xxxxxxxxxxxxx"; //邮件发送方密码/QQ授权码 public static string emailType = "smtp.qq.com";//邮件类型 smtp.1...原创 2019-01-09 10:05:41 · 249 阅读 · 0 评论 -
屏幕截屏
public static void GetScreenImage(string imgpath) { //屏幕宽 int iWidth = Screen.PrimaryScreen.Bounds.Width; //屏幕高 int iHeight = Screen.PrimaryScre...原创 2019-01-11 10:30:33 · 230 阅读 · 0 评论