摘要:
bind 绑定 $("#btnSave").bind("click", BtnSaveClick);function BtnSaveClick(){...}$("#btnSave").click() 执行事件unbind 删除绑定 阅读全文
posted @ 2014-07-31 10:02
胡卫军
阅读(191)
评论(0)
推荐(0)
摘要:
循环 each() 参数:循环的对象,每次循环执行的函数,函数的参数(不传默认为对象本身)var lbl = $("#lbls > i");var str = "";Each(lbl, function (i) { str += i.innerHTML.trim()+","; });var arr ... 阅读全文
posted @ 2014-07-31 10:00
胡卫军
阅读(325)
评论(0)
推荐(0)
摘要:
字体闪烁function changeColor() { var color = "#336699|red"; color = color.split("|"); document.getElementById("blink").style.color = color[parseInt(Math.r... 阅读全文
posted @ 2014-07-31 09:59
胡卫军
阅读(132)
评论(0)
推荐(0)
摘要:
$("#lblContents :checkbox").each(function () { if (this.checked) { this.checked = false; ids =""; } else { this.checked = true; ids += $(this).... 阅读全文
posted @ 2014-07-31 09:57
胡卫军
阅读(245)
评论(0)
推荐(0)
摘要:
键盘事件 阅读全文
posted @ 2014-07-31 09:56
胡卫军
阅读(113)
评论(0)
推荐(0)
摘要:
键值对:var postData = new List>();postData.Add(new KeyValuePair("a", "1"));postData.Add(new KeyValuePair("b", "2"));postData.Add(new KeyValuePair("c", "3... 阅读全文
posted @ 2014-07-31 09:53
胡卫军
阅读(1946)
评论(1)
推荐(0)
摘要:
按字节截取字符串,参数:字符串,截取的字符 function getStr(str, n) { if (lenFor(str) 255) { byteLen += 2; } else { byteLen++; } } return byteLen; } else { ret... 阅读全文
posted @ 2014-07-31 09:50
胡卫军
阅读(240)
评论(0)
推荐(0)
摘要:
前台:document.getElementById("").value = 3; document.getElementById("").click(); 后台: protected void btnSearch_Click(object sender, EventArgs e) { Bin... 阅读全文
posted @ 2014-07-31 09:49
胡卫军
阅读(88)
评论(0)
推荐(0)
摘要:
window.location.href = "Index.aspx"; 当前页面打开window.open("Index.aspx") 打开新页面url传参 ResourceEdit.aspx?IsManager=1&ID=2获取url参数 request("IsManager")=1 funct... 阅读全文
posted @ 2014-07-31 09:48
胡卫军
阅读(260)
评论(0)
推荐(0)
摘要:
//对象定义(构造函数) //参数:所有参数须为字符串形式. //当参数长度为1时,参数值将是字符串之间连接的分隔符 //当参数长度大于1时,最后一位将是字符串之间的分隔符,其余的参数将是字符串值 //当不指定参数时,分隔符默认为空白 //也可以不指定分隔符,而在ToString中显式指定分隔符 /... 阅读全文
posted @ 2014-07-31 09:47
胡卫军
阅读(181)
评论(0)
推荐(0)
浙公网安备 33010602011771号