counter
counter
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 转:http://topic.csdn.net/u/20120628/17/cedc4661-39b6-42c9-9ba1-a1d8e3244142.htmlCREATE TABLE [dbo].[Tim_LinqTable]([Id] int PRIMARY KEY IDENTITY(1,1) NOT NULL,[Name] [varchar](50) NOT NULL,[Parent] int NOT NULL,)GOINSERT INTO [Tim_LinqTable] SELECT 'A',0 UNION ALLSELECT 'A1',1 UNION A 阅读全文
posted @ 2012-07-17 16:27 bfy 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 检测浏览器和系统:1.user-agent字符串检测法 var UserAgent=navigator.userAgent;2.方法学:if(isMinIE5)事件:1.IE为冒泡事件,自下往上;netscape为捕获性事件,自上往下。DOM同时支持这两种事件。2.浏览器中发生的事件分为:鼠标事件,键盘事件,HTML事件,突发事件。①.页面上的所有元素都支持鼠标事件。都会给event对象的属性填入值:坐标属性,type属性,target(DOM)属性或srcelement(IE)属性,shiftkey,ctrlkey,altkey(DOM)属性②.键盘事件会填入以下的事件属性:keycode, 阅读全文
posted @ 2012-07-16 18:14 bfy 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1.使用RegExp对象:var cat=new RegExp("字符串","额外指令")正则表达式:/字符串模式/额外的处理指令该对象有test()方法:RegExp对象.test(需要测试的字符串),返回true或false; exec()方法:RegExp对象.exec(需要测试的字符串),返回一个数组; match()方法:需要测试的字符串.match(RegExp对象),返回满足的数组; search()方法:需要测试的字符串.search(RegExp对象),返回第一个出现匹配的字符串的首字母的位置。 function add() { //. 阅读全文
posted @ 2012-07-13 14:40 bfy 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1.当向document添加大量数据时,逐个添加的话,比较麻烦,创建一个文档碎片把所有的结点附加其上。然后把文档碎片的内容一次添加到需要的位置。 <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript"> function add() { // var areaTxt = ["a"," 阅读全文
posted @ 2012-07-12 19:07 bfy 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 1.时间暂停:执行一组指定的代码前等待一段时间。例如:购物车的显示。$(function(){$("#cartProductListdl:nth-child(odd)").addClass("dl_bg"); varinterval;$("#viewCartProduct").mouseover(function(){//取消还未执行的时间等待clearTimeout(interval);$("#viewCartProduct").addClass('mouse_on');$("#cart 阅读全文
posted @ 2012-07-12 15:50 bfy 阅读(1984) 评论(0) 推荐(0) 编辑
摘要: 1、你的爱好就是你的方向,你的兴趣就是你的资本,你的性情就是你的命运。 2、简单的事情重复做,你就是专家;重复的事情用心做,你就是赢家。 3、美丽是属于自信者的,从容是属于有备者的,奇迹是属于执著者的,成功是属于顽强者的。4、美好的东西得到都很不容易。 5、面对现实吧 阅读全文
posted @ 2012-07-11 16:49 bfy 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.call()继承方式:与对象冒充方式最相似一.functionsaycolor(pre,nex){alert(pre+this.color+nex);} varobj=newObject;obj.color="RGB(0,100,0)";saycolor.call(obj,"pre表示前置语句","nex表示后置语句") call参数,obj代表需要调用的对象,后两个参数为自身的参数。二.ClassB 继承ClassAfunctionClassA(color){this.color=color;this.SayColor=func 阅读全文
posted @ 2012-07-11 14:58 bfy 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 代码在插入的时候样子调的正好,显示的时候就乱了呢?1.构造函数方式<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript"> function car(name,year){ this.name=name; this.year=year; this.show=function(){ alert("nam 阅读全文
posted @ 2012-07-11 11:26 bfy 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1.后台 参数是string类型,但前台Checked='<%#HaveCourseIntro(Eval("CourseCode").ToString())%>'必须加上ToString()方法。要不报题目的错。 阅读全文
posted @ 2012-07-09 19:12 bfy 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: 1.已知三级联动2.未知级次 /// <summary> /// 下拉框信息实体类。 /// </summary> public class JQSelectCol { public string Name { get; set; } public string Code { get; set; } } #region 数据源 private List<Entity.JQSelectCol> GetSelectDataByParentCode(string parentCode) { r... 阅读全文
posted @ 2012-07-09 16:17 bfy 阅读(262) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页