87,910
社区成员
发帖
与我相关
我的任务
分享
(function($){
$(window).load(function(){
$(".roleTable").mCustomScrollbar({
theme:"minimal-dark",
scrollButtons:{
enable:true,
scrollType:"continuous",
scrollSpeed:20,
scrollAmount:40
},
horizontalScroll:false,
});
});
})(jQuery);
function bindData(data){
console.log("in binddata");
$('.roleTable').empty();//删除原数据
let datas = data;
//console.log("传入数据:"+datas);
let tdstr = '';
for(let i=0;i<datas.entitys.length;i++){
tdstr += '<li id="'+(datas.entitys[i].role.roleId)+'"><span class="list-img"></span>';
tdstr += '<span class="list-name" >'+(datas.entitys[i].role.roleName)+'</span><span class="list-change">';
tdstr += '</span><span class="list-del"></span></li>';
}
$('.roleTable').append(tdstr);
$(".roleTable").mCustomScrollbar("update");
click1();
click2();
click3();
click4();
click5();
}