上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: (function($){ $(function(){ $("p").click(function(){ alert($(this).text()); }); }); })(jQuery) 阅读全文
posted @ 2016-07-12 11:56 xjt360 阅读(112) 评论(0) 推荐(0) 编辑
摘要: var NNN = new int[4] { 11, 22, 33, 44 }; var newNNN = NNN.ToDictionary(m => m, n1 => NNN.Select((a, index) => new { a, index }).FirstOrDefault(b => b. 阅读全文
posted @ 2016-06-20 09:55 xjt360 阅读(157) 评论(0) 推荐(0) 编辑
摘要: bbb: //标签标志 Console.WriteLine("1、请输入一个年份数字"); Console.WriteLine("2、退出请输入q键"); String year = Console.ReadLine(); //键盘输入一个年份数字 if (year != "q") { Int32 阅读全文
posted @ 2016-06-06 15:41 xjt360 阅读(243) 评论(0) 推荐(0) 编辑
摘要: delete A from Table A where exists(select count(*)c from Table B where A.col1=B.col1 and A.col2=B.col2 having count(*)>1) 注意 delete 后面的A必写,不然会报错 如果用in 阅读全文
posted @ 2016-03-30 11:22 xjt360 阅读(437) 评论(0) 推荐(0) 编辑
摘要: Products.Select(P => new{  ID = P.ProductID,  Name = P.Name,  Color = P.Color,  Price = (P.Color == "Red" ? P.StandardCost : (P.Color == "Black" ? P.S 阅读全文
posted @ 2016-03-15 14:47 xjt360 阅读(10144) 评论(0) 推荐(0) 编辑
摘要: 增加外键 alter table T1 drop constraint fk_1 alter table T1 add constraint fk_2 foreign key(a1) references T2(a2) 阅读全文
posted @ 2016-01-21 09:40 xjt360 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、打开你的VS2012网站项目,右键点击项目》菜单中 重新生成一下网站项目;再次点击右键》发布: 2、弹出网站发布设置面板,点击<新建..>,创建新的发布配置文件: 输入你自己定义的配置文件名: 3、点击下一步:在发布方法中选“文件系统”,这样我们可以发布到自己指定的本机文件上。 选择自己指定的文 阅读全文
posted @ 2016-01-11 16:35 xjt360 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 无法访问请求的页面,因为该页的相关配置数据无效。如下图:解决方法,到站点目录的属性,安全标签,添加用户(Everyone),并给修改权限: 阅读全文
posted @ 2016-01-11 16:17 xjt360 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 方法的外部属性var test=function(num1,num2,num3){ alert(num1+num2);} alert(test.length);//方法的属性lenght:形参的个数2 this 函数的作用域 3 call aplyfunction each(arr,fu... 阅读全文
posted @ 2015-09-15 07:16 xjt360 阅读(149) 评论(0) 推荐(0) 编辑
摘要: varfactorial=function(num){ if(num<=1) return 1; else // return num*factorial(num-1);//递归时,在方法内部通过该方法的方法名来调用自己是非常危险的,因为js可以直接修改方法变脸的值 re... 阅读全文
posted @ 2015-09-13 12:43 xjt360 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页