2017年6月13日
摘要: //访问修饰符 函数名(参数1,参数2) //{ //函数体 //return 返回值 //} /// <summary> /// 无参数,无返回值 /// </summary> public static void abc() { Console.WriteLine("无参数,无返回值"); } 阅读全文
posted @ 2017-06-13 16:21 homie 阅读(153) 评论(0) 推荐(0) 编辑
  2017年6月12日
摘要: 数组 数组有很多的优点,比如说数组在内存中是连续存储的,所以它的索引速度是非常的快,而且赋值与修改元素也很简单,比如: 但是,数组也存在一些不足的地方。比如在数组的两个数据间插入数据也是很麻烦的。还有我们在声明数组的时候,必须同时指明数组的长度,数组的长度过长,会造成内存浪费,数组和长度过短,会造成 阅读全文
posted @ 2017-06-12 14:43 homie 阅读(276) 评论(0) 推荐(0) 编辑
摘要: //ArrayList //ArrayList alt = new ArrayList(); //alt.Add("123"); //alt.Add(123); //alt.Add(true); //bool iscontain = alt.Contains("1"); //alt.Clear(); 阅读全文
posted @ 2017-06-12 11:30 homie 阅读(291) 评论(0) 推荐(0) 编辑
  2017年6月10日
摘要: +++++String类+++++黑色小扳手 - 属性紫色立方体 - 方法 ***字符串.Length - 字符串长度,返回int类型 字符串.TrimStart() - 去掉前空格字符串.TrimEnd() - 去掉后空格***字符串.Trim() - 去掉字符串的前后空格 string ***字 阅读全文
posted @ 2017-06-10 16:17 homie 阅读(1109) 评论(0) 推荐(0) 编辑
  2017年6月7日
摘要: 转换方法: 1.(int)变量名[强制类型转换] 该转换方式主要用于数字类型之间的转换,从int类型向long,float,double,decimal 类型转换可以使用隐式转换,但从long型到int 就需要使用显示转换,即使用该类型的转换方式否则产生编译错误。 2.int.Parse(strin 阅读全文
posted @ 2017-06-07 15:18 homie 阅读(169) 评论(0) 推荐(0) 编辑
摘要: C#是一种安全的、稳定的、简单的、优雅的,由C和C++衍生出来的面向对象的编程语言。它在继承C和C++强大功能的同时去掉了一些它们的复杂特性(例如没有宏以及不允许多重继承)。C#综合了VB简单的可视化操作和C++的高运行效率,以其强大的操作能力、优雅的语法风格、创新的语言特性和便捷的面向组件编程的支 阅读全文
posted @ 2017-06-07 09:59 homie 阅读(117) 评论(0) 推荐(0) 编辑
  2017年6月5日
摘要: <html> <head> <meta charset="UTF-8"> <title></title> <style> * { margin: 0px; padding: 0px; } #mask { width: 100%; /*height: 500px;*/ background-color 阅读全文
posted @ 2017-06-05 16:48 homie 阅读(176) 评论(0) 推荐(0) 编辑
  2017年6月1日
摘要: #stage{ width: 300px; height: 200px; border: 10px solid black; margin: 300px; position: relative; overflow: hidden; } #ad-banner{ width: 1500px; heigh 阅读全文
posted @ 2017-06-01 17:24 homie 阅读(106) 评论(0) 推荐(0) 编辑
  2017年5月31日
摘要: IE中: document.body.clientWidth ==> BODY对象宽度 document.body.clientHeight ==> BODY对象高度 document.documentElement.clientWidth ==> 可见区域宽度 document.documentE 阅读全文
posted @ 2017-05-31 10:58 homie 阅读(428) 评论(0) 推荐(0) 编辑
  2017年5月27日
摘要: Bootstrap,来自 Twitter,是目前很受欢迎的前端框架。Bootstrap 是基于 HTML、CSS、JAVASCRIPT 的,它简洁灵活,使得 Web 开发更加快捷。它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架。Boot 阅读全文
posted @ 2017-05-27 16:37 homie 阅读(126) 评论(0) 推荐(0) 编辑