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);
});
}
}
jquery总结20161212
猜你喜欢
转载自zqs520.iteye.com/blog/2344317
今日推荐
周排行