会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
神人唯吾
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
下一页
2011年8月9日
jQuery选择符
摘要: $('a').filter(function(){ return this.hostname && this.hostname != location.hostname;}).addClass('external');
阅读全文
posted @ 2011-08-09 10:35 绯色卡卡
阅读(132)
评论(0)
推荐(0)
2011年8月3日
Windows7中开启ASP.NET State Service服务
摘要: 控制面板->程序和功能->打开或关闭Windows功能->Internet信息服务->万维网服务->应用程序开发功能->ASP.NET 勾选,确定。计算机->管理->服务->ASP.NET State Service 启用,自动。
阅读全文
posted @ 2011-08-03 17:20 绯色卡卡
阅读(3412)
评论(1)
推荐(0)
2011年8月2日
Request
摘要: Request从几个集合取值是有顺序的,从前到后依次是QueryString、Form、ServerVariables,Request对象按照这个顺序查找集合中的变量,如果有符合的就终止,后面的就不管了。如果页面使用get()方法,用Request.QueryString();如果页面使用post()方法,用Request.Form()。如果不指定集合会降低搜索速度,所以最好养成在Request后面指定集合的好习惯。
阅读全文
posted @ 2011-08-02 17:17 绯色卡卡
阅读(160)
评论(0)
推荐(0)
CSS
摘要: media = "screen" \\输出到屏幕
阅读全文
posted @ 2011-08-02 14:32 绯色卡卡
阅读(158)
评论(0)
推荐(0)
2011年8月1日
jQuery简写
摘要: $(function(){}) = $(document).ready(function(){})
阅读全文
posted @ 2011-08-01 09:28 绯色卡卡
阅读(363)
评论(0)
推荐(0)
2011年7月27日
给元素添加class的函数
摘要: function addClass(element,value){ if(!element.className){ element.className=value; }else{ newClassName=element.className; newClassName+=" "; newClassName+=value; element.className=newClassName; }}
阅读全文
posted @ 2011-07-27 15:42 绯色卡卡
阅读(192)
评论(0)
推荐(0)
insertAfter
摘要: function insertAfter(newElement,targetElement){ var parent = targetElement.parentNode; if(parent.lastChild == targetElement){ parent.appendChild(newElement); }else{ parent.insertBefore(newElement,targetElement.nextSibling); }}
阅读全文
posted @ 2011-07-27 09:58 绯色卡卡
阅读(163)
评论(0)
推荐(0)
addLoadEvent
摘要: function addLoadEvent(func){ var oldonload = window.onload; if(typeof window.onload != 'function'){ window.onload = func; }else{ window.onload = function(){ oldonload(); func(); } }}
阅读全文
posted @ 2011-07-27 09:49 绯色卡卡
阅读(142)
评论(0)
推荐(0)
2011年7月19日
泛型结构
摘要: public struct MyStruct<T1,T2>{ public T1 item1; public T2 item2;}
阅读全文
posted @ 2011-07-19 10:05 绯色卡卡
阅读(129)
评论(0)
推荐(0)
2011年7月18日
定义泛型类
摘要: class MyGenericClass<T1,T2,T3>{ private T1 innerT1Object; public MyGenericClass() { innerT1Object = default(T1); }}约束class MyGenericClass<T1,T2> where T1:constraint1 where T2:constraint2{ ...}class MyGenericClass<T1,T2> where T2:T1
阅读全文
posted @ 2011-07-18 17:22 绯色卡卡
阅读(111)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告