push splice filter用法

checkedData.push(record); 直接在record 这个数组后面添加;

var index =jQuery.inArray(record,checkedData);// 获取index 的位置

checkedData.splice(index,1); // 从index位置删除1个

 

$("#specificationid  input[type='checkbox']").filter(":checked").size();// 过滤 input[type='checkbox']的 是选中的长度 

 

posted @ 2015-08-26 16:18  #料  阅读(353)  评论(0编辑  收藏  举报