您的位置:首页 > 其它

checkbox 触发两次问题

2016-05-03 17:26 211 查看
function itemList_check(itemList) {

debugger;

if (itemList.type != "checkbox") {

$(itemList).find(":checkbox").click(function () {

itemList.stopPropagation();

});

}

else {

var m=$(itemList).attr("index_item");

var checkAll = $(itemList).is(':checked');

alert(checkAll);

if (checkAll) {

data[m].AffairReciveType = 1;

alert("选择");

return;

}

else {

//data[m].AffairReciveType = 0;

alert("不选择");

}

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: