隐藏按钮button

<td>
  <input id="del" type="button" value="删除" onclick="userDel(${user.id})" />
</td>
<!--  隐藏删除按钮
        <script language="javascript">
                var status = ${user.id};
                if (status==1){
                      document.getElementById("del").style.display="none";
                }
          </script>
-->

 

posted @ 2019-05-27 17:51  少年天  阅读(2403)  评论(0编辑  收藏  举报