Chinaunix首页 | 论坛 | 博客
  • 博客访问: 108502
  • 博文数量: 36
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 330
  • 用 户 组: 普通用户
  • 注册时间: 2014-08-18 23:16
文章分类
文章存档

2016年(7)

2015年(20)

2014年(9)

我的朋友

发布时间:2015-03-10 16:07:33

//屏蔽右键菜单 document.oncontextmenu = function (event) { if (window.event) { event = window.event; } try { var the = event.srcElement; if (!( ( the.tagName == "INPUT" && the.type.toLowerCase() == "text" ) || the.tagName == "TEXTAREA" )) { return false; } return true; } ca.........【阅读全文】

阅读(822) | 评论(0) | 转发(0)

发布时间:2015-03-07 21:35:38

jquery1.6中新加了一个方法prop(),一直没用过它,官方解释只有一句话:获取在匹配的元素集中的第一个元素的属性值。大家都知道有的浏览器只要写disabled,checked就可以了,而有的要写成disabled = "disabled",checked="checked",比如用attr("checked")获取checkbox的checked属性时选中的时候可以取到值,值为"chec.........【阅读全文】

阅读(674) | 评论(0) | 转发(0)

发布时间:2015-03-07 16:38:22

今天闲来无事就把PDO的数据处理重写了一下,以方便以后自己使用主要是为了以后的方便加入了预处理和事务的处理,还有更自由的数据方式和类型设置如果发现有不好的地方请指出,本人将立即更正调用方式: index.php[php]<?php//********************************************//*        Ex.........【阅读全文】

阅读(2839) | 评论(0) | 转发(0)

发布时间:2015-03-07 14:24:00

$(document).ready(function() { $("#checkbox").click(function() {      if (!!$("#checkbox").attr("checked")) { alert("被选中!"); } }); });......【阅读全文】

阅读(523) | 评论(0) | 转发(0)

发布时间:2015-03-06 17:59:21

/*选项卡id                          easyui标签的IDmaxlength             设置选项卡最大个数*/jeasyui.Tabs = function (id, maxlength) {    this.id = id;    this.maxlength = maxleng.........【阅读全文】

阅读(922) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册