上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: /*在泛型类型定义中,where 子句用于指定对下列类型的约束:这些类型可用作泛型声明中定义的类型参数的实参。 例如,可以声明一个泛型类 MyGenericClass,这样,类型参数 T 就可以实现 IComparable 接口:*/public class MyGenericClass where T:IComparable {} 阅读全文
posted @ 2013-11-27 15:01 ``炯`` 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: linqPadhttp://www.cnblogs.com/li-peng/p/3441729.htmlhttp://www.linqpad.net/Linqerhttp://www.sqltolinq.com/downloads 阅读全文
posted @ 2013-11-26 11:20 ``炯`` 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 错误模式:其无法工作,浏览器会报语法错。 function(){ alert(1);}();函数字面量:首先声明一个函数对象,然后执行它。(function(){ alert(1);} ) ( );优先表达式:由于Javascript执行表达式是从圆括号里面到外面,所以可以用圆括号强制执行声明的函数。( function(){ alert(2);} ( ) );Void操作符:用void操作符去执行一个没有用圆括号包围的一个单独操作数。void function(){ alert(3);}()这三种方式是等同的,在实际应用中我看到的和使用的都是第1种。 阅读全文
posted @ 2013-11-25 14:57 ``炯`` 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 2 3 no 可用于Table 4 5 2. 取消选取、防止复制 6 7 3. onpaste="return false" 不准粘贴 8 9 4. oncopy="return false;" oncut=&q 阅读全文
posted @ 2013-11-25 11:58 ``炯`` 阅读(699) 评论(0) 推荐(0) 编辑
摘要: click() 对象.click() 使对象被点击。closed 对象.closed 对象窗口是否已关闭true/falseclearTimeout(对象) 清除已设置的setTimeout对象clearInterval(对象) 清除已设置的setInterval对象confirm("提示信息") 弹出确认框,确定返回true取消返回falsecursor:样式 更改鼠标样式 hand crosshair text wait help default auto e/s/w/n-resizeevent.clientX 返回最后一次点击鼠标X坐标值;event.clientY 阅读全文
posted @ 2013-11-25 11:57 ``炯`` 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 方式一:var results = from product in products orderby product.Price descending select new { product.Name, product.Price };方式二: products.Where(pro => pro.Price new { s.Name, s.Price });查询结果转换到实体里:方式一:var list = from q in... 阅读全文
posted @ 2013-11-22 15:51 ``炯`` 阅读(5476) 评论(0) 推荐(0) 编辑
摘要: (1)@Html.DisplayNameFor(model => model.Title)是显示列名,(2)@Html.DisplayFor(modelItem=> item.Title)是显示列的内容(3)@Html.ActionLink("CreateNew", "Create")是超链接,跳转到model中的create页面,引用的是controller中create方法;(4)@Html.ActionLink("Edit", "Edit", new { id=item.ID })编辑页面;(5) 阅读全文
posted @ 2013-11-21 11:51 ``炯`` 阅读(8200) 评论(1) 推荐(1) 编辑
摘要: google:打开google地图-->查找目的地-->右键:此位置居中-->地址栏键入javascript:void(prompt('',gApplication.getMap().getCenter()));回车如果上述方法没有显示、报错‘prompt is not defined’或其他不能够,尝试以下方法firefox打开google地图-->查找目的地-->右键:此位置居中-->打开FIREBUG -> 控制台 -> 点击右下角红色三角图标 ->在右侧分栏中输入上述代码,点击‘运行’baidu百度:百度坐标拾取系统 阅读全文
posted @ 2013-11-20 08:59 ``炯`` 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 要把一个xml字符串转(“1,2,3,4,5,6,7,8,1,2”)换成数组的形式,每个值都应该是number类型的,想当然的就用了split方法,结果。。。问题来了,服务器要求数组的值是数字,而split是字符方法,所产生的数组也是字符串,麻烦来了。。这么大的数据量总不能一个一个的for循环parseInt吧,想想就头痛!天无绝人之路,原来js这么强大,有很多方法可以解决,只不过是我之前不知道而已,这里总结下,并简单的区分下优劣:1. evalvar arrstr ="["+"1,2,3,4,5"+"]";eval(arrstr); 阅读全文
posted @ 2013-11-19 11:25 ``炯`` 阅读(5901) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/zh-cn/library/gg696172(v=vs.103).aspx 阅读全文
posted @ 2013-11-17 16:02 ``炯`` 阅读(180) 评论(0) 推荐(0) 编辑
摘要: select ltrim(Convert(numeric(9,2),25*100.0/30))+'%' As 百分比 NUMERIC(P,S) P的默认值是:38 S的默认值是:-84~127numeric(a,b)函数有两个参数,前面一个为总的位数,后面一个参数是小数点后的位数,例如numeric(5,2)是总位数为5,小数点后为2位的数,也就是说这个字段的整数位最大是3位。 阅读全文
posted @ 2013-11-14 11:09 ``炯`` 阅读(6941) 评论(0) 推荐(0) 编辑
摘要: //是否存在指定函数 function isExitsFunction(funcName) { try { if (typeof(eval(funcName)) == "function") { return true; } } catch(e) {} return false;}//是否存在指定变量 function isExitsVariable(variableName) { try { if (typeof(variableName) == "undefined") { //a... 阅读全文
posted @ 2013-11-08 16:41 ``炯`` 阅读(43659) 评论(0) 推荐(1) 编辑
摘要: str为要去除空格的字符串:去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,"");去除左空格:str=str.replace( /^\s*/, '');去除右空格:str=str.replace(/(\s*$)/g, "");SCRIPT LANGUAGE="JavaScript"> 访问yaosansi.com 去除所有空格: str = str.replace(/\s+/g,&quo 阅读全文
posted @ 2013-11-04 14:30 ``炯`` 阅读(53836) 评论(2) 推荐(2) 编辑
摘要: SELECT CONVERT(VARCHAR(5),GETDATE(),110) 阅读全文
posted @ 2013-10-31 19:54 ``炯`` 阅读(1432) 评论(0) 推荐(0) 编辑
摘要: public static T Deserializer(string path) { try { System.Xml.XmlDocument xd = new System.Xml.XmlDocument(); xd.LoadXml(path); MemoryStream stream = new MemoryStream(); xd.Save(stream); XmlSerializ... 阅读全文
posted @ 2013-10-30 19:06 ``炯`` 阅读(352) 评论(0) 推荐(0) 编辑
摘要: BWG7X-J98B3-W34RT-33B3R-JVYW9 阅读全文
posted @ 2013-10-20 20:22 ``炯`` 阅读(989) 评论(2) 推荐(0) 编辑
摘要: 以下是错误报告:标题: SQL Server 安装程序失败。------------------------------SQL Server 安装程序遇到以下错误:在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。。------------------------------按钮:确定------------------------------经查询,原因:mscorsvw.exe进程调用Invoke所致解决办法:打开任务管理器,结束这个进程即可。 阅读全文
posted @ 2013-10-17 13:45 ``炯`` 阅读(2143) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/sufei/archive/2012/12/07/2807170.htmlhttp://www.sufeinet.com/thread-655-1-1.html类库2013-08-17版http://files.cnblogs.com/fumj/DotNet4.0-2013-08-17.ziphttp://files.cnblogs.com/fumj/DotNet2.0.Utilities-2013-08-17.zip另一个基础类库分享的.这个为混淆版,源码不开放.http://www.cnblogs.com/huyong/archive/2 阅读全文
posted @ 2013-10-10 11:04 ``炯`` 阅读(473) 评论(1) 推荐(0) 编辑
摘要: 1、http://news.com.com/2、http://www.zdnet.com/3、http://www.salon.com/tech/index.html4、http://www.brint.com/。5、Yahoo Tech:http://news.yahoo.com/news?tmpl=index2&cid=7386、Google Tech News:http://news.google.com/news/gntechnologyleftnav.html7、TechWeb:http://www.techweb.com/8、Internetnews:http://www. 阅读全文
posted @ 2013-09-29 17:52 ``炯`` 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #fmjtest{ display:inline-block;}#fmjtest li{text-align:left;}div{width:100px;} testestsetse test 阅读全文
posted @ 2013-09-27 15:32 ``炯`` 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页