function limitedhx(){
var staarray = new Array();
<c:forEach items="${stafflists}" var="sta">
staarray.push("${sta.otherfunctions}"); //js中可以使用此标签,将EL表达式中的值push到数组中
</c:forEach>
for(var list=0;list<'${stafflists.size()}';list++){
var otherfunctions1=staarray[list].split(",");
for(var mk=0;mk<otherfunctions1.length;mk++){
for(var of=0;of<$("#name"+list+" input").length;of++){
if(otherfunctions1[mk]==$("#name"+list+" input:eq("+of+")").val()){
$("#name"+list+" input:eq("+of+")").attr("checked", true);
} }
}
}
var staarray = new Array();
<c:forEach items="${stafflists}" var="sta">
staarray.push("${sta.otherfunctions}"); //js中可以使用此标签,将EL表达式中的值push到数组中
</c:forEach>
for(var list=0;list<'${stafflists.size()}';list++){
var otherfunctions1=staarray[list].split(",");
for(var mk=0;mk<otherfunctions1.length;mk++){
for(var of=0;of<$("#name"+list+" input").length;of++){
if(otherfunctions1[mk]==$("#name"+list+" input:eq("+of+")").val()){
$("#name"+list+" input:eq("+of+")").attr("checked", true);
} }
}
}
}
var usersid = "";
<c:forEach items="${list }" var="l" begin="0" end="0">
usersid = ${l.usersid};
</c:forEach>