上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页
摘要: http://www.oschina.net/code/snippet_76860_6032function imgError(obj){ obj.src='/error/images/filmthum_err.gif'; obj.onerror = null;//控制onerror事件只触发一次}function imgLoading(obj) { obj.nextSibling.style.display='none'; obj.style.display='block';}HTML代码:<img src="${Image}& 阅读全文
posted @ 2011-09-07 13:13 一个土豆一棵青菜 阅读(1755) 评论(2) 推荐(0) 编辑
摘要: html<div id="PersonalInfoLeft" > <div id="P0" class="eeedss1"> <span class="Icocss">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> <div > <span cla... 阅读全文
posted @ 2011-09-01 16:48 一个土豆一棵青菜 阅读(174) 评论(1) 推荐(0) 编辑
摘要: 我的帖子:http://topic.csdn.net/u/20110901/12/4b48c9dc-45e8-4c4a-b27e-7c84d8dd52b8.html语法:(//你的认为需要的全局变量以及用到这个变量的函数)();(function(){var a=0; function aa(){a=1;}alert(a);//结果为0????不是与结果大相径庭嘛...})(); 原来是我没有执行aa函数 哈哈哈 (function(){ var a=0; b(); function b() { a=1; } function c() ... 阅读全文
posted @ 2011-09-01 14:36 一个土豆一棵青菜 阅读(1085) 评论(0) 推荐(1) 编辑
摘要: 语法:function aa(){//m、p可以是任意类型的数据 数组 int string datset datatable var m; var p; return {a:m,b:p}}function bb(){ var ref=aa(); alert(ref.a); alert(ref.b);}//经过测试 OKfunction getTacheContract(){var dt=QLfolw.getTacheContract(tmpid).value;//datatablevar dtLength=QLfolw.getTacheContract(tmpid).value.... 阅读全文
posted @ 2011-09-01 11:41 一个土豆一棵青菜 阅读(738) 评论(0) 推荐(0) 编辑
摘要: dataset ds=数据清空dataset:ds.Clear();datatable dt1=ds.tables[0];//界面1赋值 datatable dt2=ds.tables[0];//界面2赋值//修改了dt2 --> dt1也变化 ds.tables[0]也会变化,变化成dt2修改后的数据集 阅读全文
posted @ 2011-08-31 17:54 一个土豆一棵青菜 阅读(2627) 评论(0) 推荐(1) 编辑
摘要: declare @id int,@temp nvarchar(100)set @id=2set @temp='1,2,3,12,21,51'if(charindex(','+convert(nvarchar,@id)+',',','+@temp+',')>0)beginselect 1end 听说sql不善于逻辑的分析所以用if 效率低 可以用case替换declare @id int,@temp nvarchar(100)set @id=2set @temp='1,2,3,12,21,51' 阅读全文
posted @ 2011-08-31 15:14 一个土豆一棵青菜 阅读(493) 评论(0) 推荐(0) 编辑
摘要: with T1 As (Select * From Table1)Select * From T1 where sex=1 Union All Select * From T1 where type=2 阅读全文
posted @ 2011-08-30 15:55 一个土豆一棵青菜 阅读(3457) 评论(0) 推荐(0) 编辑
摘要: 临时表与永久表相似,但临时表存储在 tempdb 中,当不再使用时会自动删除。临时表有两种类型:本地和全局。它们在名称、可见性以及可用性上有区别。本地临时表的名称以单个数字符号 (#) 打头;它们仅对当前的用户连接是可见的;当用户从 SQL Server 实例断开连接时被删除。全局临时表的名称以两个数字符号 (##) 打头,创建后对任何用户都是可见的,当所有引用该表的用户从 SQL Server 断开连接时被删除。来自这里:传送门select*into #d from tachecontractid --#d没有提前声明 insertinto #temp se... 阅读全文
posted @ 2011-08-30 15:52 一个土豆一棵青菜 阅读(260) 评论(0) 推荐(0) 编辑
摘要: int pc = 2; protected void Page_Load(object sender, EventArgs e) { //控制菜单 object obj = Request.QueryString["temp"]; if (obj == null) { ViewState["temp"] = 1; } else { ViewState["temp"] = obj; } Page.RegisterS... 阅读全文
posted @ 2011-08-30 15:34 一个土豆一棵青菜 阅读(252) 评论(0) 推荐(0) 编辑
摘要: //进入后台 即刷新页面function Q1Onclick(temp){ window.location.href="WXContract.aspx?temp="+temp;//temp(样式的id中的数字;完整版:wff1、wff2...)} //执行下边的jsPage.RegisterStartupScript("", "<script>yangshi("+temp+");</script>");//进去前台的方法 放在Page_Load里边//底下是读取数据呀什么的 //清空所有样式 阅读全文
posted @ 2011-08-30 11:42 一个土豆一棵青菜 阅读(1227) 评论(0) 推荐(1) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 26 下一页