摘要: static void Main(string[] args) { int[] arr = {5,6,-2,3,9,7,1,-6 }; Px(arr); } public static void Px(int[] arr) { for (int i = 0; i < arr.Length-1; i+ 阅读全文
posted @ 2017-10-19 19:37 雪wolf 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Ctrl+K+D:对其代码; #Region #endRegion:折叠多余代码; Ctrl+K+S:可以折叠代码写注释; 语法格式:数据类型 变量名; 如:int a=20; 常用数据类型:int(整型) 如:20; double/float(小数) 如:3.2,35.4; char(字符) 如: 阅读全文
posted @ 2017-10-04 17:26 雪wolf 阅读(119) 评论(0) 推荐(0) 编辑
摘要: var a = "asdfghjkl" alert(a.substr(1, 3)); // 从下标为1开始,往右数3个长度的数, 显示 sdf; alert(a.substring(1, 3)); // 从下标为1开始,到下标为3结束(左闭右开), 显示 sd; alert(a.indexOf("s 阅读全文
posted @ 2017-09-20 16:58 雪wolf 阅读(403) 评论(0) 推荐(0) 编辑
摘要: function getRowObj(obj) { while(obj.tagName.toLowerCase()!="tr") // toLowerCase转化小写 { obj=obj.parentNode; } // 得到父节点 return obj; } function sc(obj) // 阅读全文
posted @ 2017-09-20 15:49 雪wolf 阅读(492) 评论(0) 推荐(0) 编辑
摘要: <link rel="shortcut icon" href="1.ico"> href="图片名字.ico"; 图片后缀名为: .ico 阅读全文
posted @ 2017-09-20 15:38 雪wolf 阅读(479) 评论(0) 推荐(0) 编辑