var arr = [1,1,0]; $('table').each(function(i, n){ if(arr[i]){ $(this).show(); } });
<style type="text/css"> table{ display:none;} </style> <table> <tr> <td>11</td> </tr> </table> <table> <tr> <td>22</td> </tr> </table> <table> <tr> <td>33</td> </tr> </table> <script> var arr = [1,1,0]; $('table').each(function(i, n){ if(arr[i]){ $(this).show(); } }); </script>
8.7w+
社区成员
22.4w+
社区内容