• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
胡卫军
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2014年7月31日
bind 与unbind
摘要: bind 绑定 $("#btnSave").bind("click", BtnSaveClick);function BtnSaveClick(){...}$("#btnSave").click() 执行事件unbind 删除绑定 阅读全文
posted @ 2014-07-31 10:02 胡卫军 阅读(191) 评论(0) 推荐(0)
each()
摘要: 循环 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)
checkbox全选 反选 不选 并获取id的值
摘要: $("#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)
键值对参数转换为Jquery json data参数
摘要: 键值对: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)
获取url参数
摘要: 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)
StringBuilder效果
摘要: //对象定义(构造函数) //参数:所有参数须为字符串形式. //当参数长度为1时,参数值将是字符串之间连接的分隔符 //当参数长度大于1时,最后一位将是字符串之间的分隔符,其余的参数将是字符串值 //当不指定参数时,分隔符默认为空白 //也可以不指定分隔符,而在ToString中显式指定分隔符 /... 阅读全文
posted @ 2014-07-31 09:47 胡卫军 阅读(181) 评论(0) 推荐(0)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3