摘要: 最近遇到一个很奇怪的问题,使用 $().attr(‘checked’)返回 undefined 。上 jquery 的官网才发现,原来是版本问题,在1.6版本之后,得使用 .prop 方法取 checked 属性。我们看看官网 API 的说明。The difference betweenattributesandpropertiescan be important in specific situations.Before jQuery 1.6, the.attr()method sometimes took property values into account when retrievi 阅读全文
posted @ 2013-07-12 10:12 /vimer 阅读(214) 评论(0) 推荐(0) 编辑