控件隐藏显示

<script type="text/javascript">
<%

if(((Map)session.getAttribute("funcmap")).containsKey(new Long(165))){

%>
document.getElementById("updateRole").style.visibility = "visible";
<%}else{ %>

document.getElementById("updateRole").style.visibility="hidden";

 <%} %>
</script>

你可能感兴趣的:(JavaScript)