上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: insert into a ( 名称, 科目, 成绩 ) select 名称, 科目, 成绩 from b where 成绩 > 60 阅读全文
posted @ 2011-05-13 09:37 hen 阅读(973) 评论(0) 推荐(0) 编辑
摘要: window.onerror=function(sMessage,sUrl,sLine){ //alert("Anerroroccurred:\n"+sMessage+"\nURL:"+sUrl+"\nLineNumber:"+sLine); returntrue;//如果returnfalse;则js异常一样会出现} 阅读全文
posted @ 2011-05-12 13:29 hen 阅读(837) 评论(0) 推荐(0) 编辑
摘要: var exp = null;if (!exp)如果 exp 为 undefined,或数字零,或 false,也会得到与 null 相同的结果,虽然 null 和二者不一样。注意:要同时判断 null、undefined、数字零、false 时可使用本法。var exp = null;if (!exp && typeof exp != "undefined" && exp != 0){alert("is null");}typeof exp != "undefined" 排除了 undefined;e 阅读全文
posted @ 2011-05-12 11:37 hen 阅读(493) 评论(0) 推荐(1) 编辑
摘要: public enum eColor { discus = 0, black=1, red=2 } public string[] strsColor ={ "七彩", "黑色", "大红色"}; public string GetColor(eColor em) { return strsColor[(int)em]; } 阅读全文
posted @ 2011-05-11 10:04 hen 阅读(493) 评论(0) 推荐(0) 编辑
摘要: (未验证)将Dom对象转换为jQuery对象的方法,$(dom对象);jQuery对象转 Dom对象:var domobj = jqobj[0]var domobj=jqobj.get(0)转换成DOM对象之后就可以使用JS的方法 阅读全文
posted @ 2011-05-11 00:40 hen 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 用css 添加手状样式,鼠标移上去变小手,变小手cursor:pointer;用JS使鼠标变小手onmouseover(鼠标越过的时候)onmouseover="this.style.cursor='hand'"cursor其他取值 auto :标准光标 default :标准箭头 pointer, hand :手形光标 wait :等待光标 text :I形光标 vertical-text :水平I形光标 no-drop :不可拖动光标 not-allowed :无效光标 help :帮助光标 all-scroll :三角方向标 move :移动标 cro 阅读全文
posted @ 2011-04-29 10:51 hen 阅读(304792) 评论(0) 推荐(5) 编辑
摘要: DropDownList设置选定项DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue("中国"));如果通过FindByValue没有找到指定项则为null,而Items.IndexOf(null)会返回-1网友 -> 心雨纷扬 : 可以直接使用 selectedValue=“中国”;大家高兴吧! 阅读全文
posted @ 2011-04-27 15:03 hen 阅读(1158) 评论(9) 推荐(0) 编辑
摘要: js,jQuery 排序的实现:重点: 想要实现排序,最简单的方法就是 先把标签用jQuery读进对象数组用js排序好对象数组 (针对对象数组进行排序, 不要试图直接对网页的内容进行直接更改)用对象数组内容覆盖网页上的标签数组;//排序从文字短的到长的 var arr_a=new Array(); var i=0; $(".type_list_txt > span:contains('T恤')").parent().children("a").each(function(){ arr_a[i]=$(this).clone(); i+ 阅读全文
posted @ 2011-04-26 16:32 hen 阅读(5074) 评论(1) 推荐(1) 编辑
摘要: 文字,table 水平居中: 将父标签CSS设为 text-align:center;div水平居中: 父级: {TEXT-ALIGN: center;} 自身: { MARGIN-RIGHT: auto; MARGIN-LEFT: auto; }图片居中:<HTML> <HEAD> <TITLE> New Document </TITLE> <style> .div1{ position:absolute; top: expression(document.body.scrollTop + document.body.clientH 阅读全文
posted @ 2011-04-26 09:09 hen 阅读(332) 评论(0) 推荐(0) 编辑
摘要: SQL不规则排序,ORDER BY 不规则排序,case的使用如下:ORDER BY case DisplaySizewhen 'S' then 1when 'M' then 2when 'L' then 3when 'XL' then 4when 'XXL' then 5when '3XL' then 6end 阅读全文
posted @ 2011-04-25 17:43 hen 阅读(3977) 评论(0) 推荐(0) 编辑
摘要: 进过一个月的努力!排名进入20000了!纪念下! 阅读全文
posted @ 2011-04-25 13:33 hen 阅读(225) 评论(0) 推荐(1) 编辑
摘要: 什么?error:消息 4148,级别 16,状态 1,第 1 行 XML methods are not allowed in a GROUP BY clause.解释: XML不允许使用排序方法好吧, 你牛, 不能用就不能用吧! 解决方法: 我先把数据取出来, 外面套个 "select" 你还管的了我? 阅读全文
posted @ 2011-04-25 09:02 hen 阅读(301) 评论(0) 推荐(0) 编辑
摘要: js 字符串转成货币格式parseFloat(num).toFixed(2) 阅读全文
posted @ 2011-04-24 09:53 hen 阅读(1371) 评论(0) 推荐(2) 编辑
摘要: 有人工作,有人上学,大家千万不要错过这篇文章,能看到这篇文章也是一种幸运,真的受益匪浅,对我有很大启迪,这篇文章将会改变你我的一生,真的太好了,希望与有缘人分享,也希望对有缘人有所帮助!看完之后有种“相见恨晚”的感觉,特别激动,希望大家好好的珍藏这篇文章,相信多年以后,再来看这篇文章,一定有不同的感觉。 正如“打工皇帝”唐骏说:“我觉得有两种人不要跟别人争利益和价值回报。第一种人就是刚刚进入企业的人,头5年千万不要说你能不能多给我一点儿工资,最重要的是能在企业里学到什么,对发展是不是有利……”人总是从平坦中获得的教益少,从磨难中获得的教益多;从平坦中获得的教益浅,从磨难中获得的教益深。一个人在 阅读全文
posted @ 2011-04-23 22:55 hen 阅读(349) 评论(0) 推荐(1) 编辑
摘要: if($("#elem_id").is(":hidden")){} 阅读全文
posted @ 2011-04-23 22:23 hen 阅读(284) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页