摘要: 1.判断某个元素是否存在: if ( $('#id').lenght >0) || if ( $('#id').lenght) 2.判断checkbox/radio元素是否选中: $('input[type=checkbox]').prop('checked') // 返回 true,false 3 阅读全文
posted @ 2017-12-07 10:17 豌豆尖 阅读(13567) 评论(0) 推荐(2) 编辑