摘要: 项目中用的jquery1.9 今天需要检测一个checkbox的选中状态,想当然的用 .attr("checked") ,结果发现,无论是否选中,这个值都是 undefined 未定义。折腾了半天,无奈,只能取jq官网看看文档,发现有这么一段说明As of jQuery 1.6, the.attr()method returnsundefinedfor attributes that have not been set. In addition,.attr()should not be used on plain objects, arrays, the window, o 阅读全文
posted @ 2014-04-10 10:27 飞花雪月 阅读(3516) 评论(0) 推荐(0) 编辑