jquery总结20161212

1:jq 遍历
onLoadSuccess: function(a, data) {
            $("#userId").val(data.userId);
            $("input[name='roleId']").attr('checked',false);
            if(data.sysUserRoleList){
                $.each(data.sysUserRoleList, function(i, item){
                    $("input[name='roleId'][value='"+item.roleId+"']").attr('checked',true);
                });
            }
        }

猜你喜欢

转载自zqs520.iteye.com/blog/2344317