Javascript 本地存储采用偶数索引?
这是我的html:Javascript 本地存储采用偶数索引?,javascript,jquery,ruby-on-rails-4,local-storage,Javascript,Jquery,Ruby On Rails 4,Local Storage,这是我的html: <table> <thead> <tr style = 'background-color: white'> <th> <i class="fa fa-male"></i> Name </th> <th><i class="fa fa-bars"></i&g
<table>
<thead>
<tr style = 'background-color: white'>
<th> <i class="fa fa-male"></i> Name </th>
<th><i class="fa fa-bars"></i> Particular</th>
<th><i class="fa fa-envelope-o"></i>Unit</th>
<th><i class="fa fa-map-marker"></i>Quantity</th>
<th><i class="fa fa-phone"></i>From</th>
<th><i class="fa fa-phone"></i>Cost</th>
<th><i class="fa fa-phone"></i>Total</th>
<th><i class="fa fa-phone"></i>TAKE actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mobile</td>
<td>nokia rerihh</td>
<td>LVP</td>
<td>77</td>
<td>Snehpandya</td>
<td>777</td>
<td>59829</td>
<td>
<form action="/requisitions/5" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
<tr>
<tr>
<td>Table</td>
<td>sneh is a good boy</td>
<td>LVP</td>
<td>7</td>
<td>Snehpandya</td>
<td>78</td>
<td>546</td>
<td>
<form action="/requisitions/6" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
<tr>
<tr>
<td>Mobile</td>
<td>jskfbhksjfkjfgweh</td>
<td>LVP</td>
<td>7</td>
<td>Anil</td>
<td>77</td>
<td>539</td>
<td>
<form action="/requisitions/7" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
<tr>
</tbody>
</table>
我想在我错的地方正常设置为1,2,3,4?您没有关闭行
<tr>
<td>Mobile</td>
<td>nokia rerihh</td>
<td>LVP</td>
<td>77</td>
<td>Snehpandya</td>
<td>777</td>
<td>59829</td>
<td>
<form action="/requisitions/5" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
<tr>
可移动的
诺基亚rerihh
LVP
77
斯内潘迪亚
777
59829
一定是
<tr>
<td>Mobile</td>
<td>nokia rerihh</td>
<td>LVP</td>
<td>77</td>
<td>Snehpandya</td>
<td>777</td>
<td>59829</td>
<td>
<form action="/requisitions/5" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
</tr>
可移动的
诺基亚rerihh
LVP
77
斯内潘迪亚
777
59829
您的标记错误。您使用的是
而不是
,这意味着您每隔一次添加一个空行。
<tr>
<td>Mobile</td>
<td>nokia rerihh</td>
<td>LVP</td>
<td>77</td>
<td>Snehpandya</td>
<td>777</td>
<td>59829</td>
<td>
<form action="/requisitions/5" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
<tr>
<tr>
<td>Mobile</td>
<td>nokia rerihh</td>
<td>LVP</td>
<td>77</td>
<td>Snehpandya</td>
<td>777</td>
<td>59829</td>
<td>
<form action="/requisitions/5" class="button_to" method="get"><div><input class="po" data-confirm="Really wants to generate Po?" type="submit" value="Send for approval ->" /></div></form>
</td>
</tr>