2019年10月28日
摘要: --SQL SERVER 2000静态SQL。 SELECT * FROM ( SELECT 姓名,课程='语文',分数=语文 FROM tb UNION ALL SELECT 姓名,课程='数学',分数=数学 FROM tb UNION ALL SELECT 姓名,课程='物理',分数=物理 FR 阅读全文
posted @ 2019-10-28 22:43 代码小王子来了 阅读(283) 评论(0) 推荐(0) 编辑
  2018年5月29日
摘要: var x= new Number(); alert(x)//0 x=new Object(); alert(JSON.stringify(x)) //{} x=new Boolean(); alert(x)//false x=new RegExp(); alert(x)// /(?:)/ x=new String(); alert(x=="")// t... 阅读全文
posted @ 2018-05-29 14:25 代码小王子来了 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 自定義事件傳參數 阅读全文
posted @ 2018-05-29 14:14 代码小王子来了 阅读(465) 评论(0) 推荐(0) 编辑
  2018年5月25日
摘要: 块级元素和行级元素區分對比 块级元素獨占一行 行级元素在同一行(空間足夠的情況下) 用途:例如我們分別需要在上下左右分別設置文字圍繞 理解了块级元素,行级元素就非常容易了 --> 等行级元素 設置{style=“width:100px;height:100px”}這種樣式是無效的 少數比... 阅读全文
posted @ 2018-05-25 08:37 代码小王子来了 阅读(267) 评论(0) 推荐(0) 编辑
  2018年4月27日
摘要: 转自 https://blog.csdn.net/kingice1014/article/details/76020061 1、mysql企业常用集群架构 在中小型互联网的企业中。mysql的集群一般就是上图的架构。WEB节点读取数据库的时候读取dbproxy服务器。dbproxy服务器通过对SQL 阅读全文
posted @ 2018-04-27 13:36 代码小王子来了 阅读(1273) 评论(0) 推荐(0) 编辑
  2018年4月18日
摘要: class Program { static void Main(string[] args) { //string类型到数组 char[]数组 string str1 = "123"; string str2 = "abc"; string str3 = "表示表示"; char[] ch1= s 阅读全文
posted @ 2018-04-18 11:42 代码小王子来了 阅读(1792) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { if (args.Length > 0) Console.WriteLine(args[args.Length - 1]); //cd到控制台编译的debug文件夹 输入 Redis.exe 111 阅读全文
posted @ 2018-04-18 10:36 代码小王子来了 阅读(540) 评论(0) 推荐(0) 编辑
  2018年4月13日
摘要: Type ty = t.GetType(); PropertyInfo[] PropertyInfo = ty.GetProperties(); string Typename = typeof(T).Name;PropertyInfo [1].GetValue(????) GetValue有两个参 阅读全文
posted @ 2018-04-13 10:49 代码小王子来了 阅读(3763) 评论(0) 推荐(1) 编辑
  2018年4月12日
摘要: BeginInvoke是异步线程执行 class Program { static int TakeWhile() { int threadid = Thread.CurrentThread.ManagedThreadId; Console.WriteLine("子线程ID:"+threadid); 阅读全文
posted @ 2018-04-12 15:58 代码小王子来了 阅读(228) 评论(0) 推荐(0) 编辑
  2018年4月9日
摘要: 转: Const 定义的是静态常在对象初始化的时候赋值.以后不能改变它的值.属于编译时常量。不能用new初始化。 Readonly 是只读变量.属于运行时变量.可以在类constructor里改变它的值.不能作用于局部变量。 const 和 static 不能在一起用,它已经是静态的了。 我们都知道 阅读全文
posted @ 2018-04-09 22:06 代码小王子来了 阅读(261) 评论(0) 推荐(0) 编辑