摘要: /// <summary> /// 满足条件后1秒钟执行 /// </summary> public static System.Timers.Timer tXMGSZSJOA = new System.Timers.Timer(1000);//实例化timer类,设置间隔时间为6000毫秒(1秒钟 阅读全文
posted @ 2018-01-27 09:57 _NickWang 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 什么是进程? 当一个程序开始运行时,它就是一个进程,进程包括运行中的程序和程序所使用到的内存和系统资源。 而一个进程又是由多个线程所组成的。 什么是线程? 线程是程序中的一个执行流,每个线程都有自己的专有寄存器(栈指针、程序计数器等),但代码区是共享的,即不同的线程可以执行同样的函数。 什么是多线程 阅读全文
posted @ 2018-01-27 09:57 _NickWang 阅读(216) 评论(0) 推荐(0) 编辑
摘要: (1)首先声明Timer变量: //一定要声明成局部变量以保持对Timer的引用,否则会被垃圾收集器回收! private System.Threading.Timer timerClose; (2)在上述自动执行代码后面添加如下Timer实例化代码: // Create a timer threa 阅读全文
posted @ 2018-01-27 09:53 _NickWang 阅读(589) 评论(0) 推荐(0) 编辑
摘要: select count(*) '总字段数', ISNULL(ISNULL(sum(case when isnullable=0 then 1 end),null),null) as '非空字段数' from syscolumns where id=object_id( 'EmpInfo') --空 阅读全文
posted @ 2018-01-27 09:43 _NickWang 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1.最新版本 2.打开文件,将包含以下文件: Ext.Net.dll Ext.Net.Utilities.dll Ext.Net.xml Newtonsoft.Json.dll Newtonsoft.Json.xml 3.打开 Visual Studio,创建C#网站项目 打开菜单创建网站 弹出"创 阅读全文
posted @ 2018-01-27 09:38 _NickWang 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 1、 <script> document.Write("Hello wrrld!!!"); </script> 2、 <script language="JavaScript"> document.write("Hello World!!"); </script> 3、 <script langua 阅读全文
posted @ 2018-01-27 09:36 _NickWang 阅读(2072) 评论(0) 推荐(0) 编辑
摘要: // 自定义异常,继承自Exception public class MyException : Exception { public override string Message { get { return "开始日期或者结束日期格式不正确"; } } } 在需要用的时候抛出 throw ne 阅读全文
posted @ 2018-01-27 09:26 _NickWang 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 替换语句 将所有lirnming列有2011的数据修改成2014 update tab set lieming = replace(lieming,'2011','2014'); 阅读全文
posted @ 2018-01-27 09:25 _NickWang 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Anagrams of string(带有重复项) 使用递归。对于给定字符串中的每个字母,为字母创建字谜。使用map()将字母与每部分字谜组合,然后使用reduce()将所有字谜组合到一个数组中,最基本情况是字符串长度等于2或1。 const anagrams = str => { if (str. 阅读全文
posted @ 2018-01-25 17:31 _NickWang 阅读(358) 评论(0) 推荐(0) 编辑