我如何遍历html表,以便能够形成json字符串来更新数据库

时间:2019-07-01 08:11:24

标签: javascript html json

<tr>
    <th>Date</th>
    <th>Defer Date</th>
    <th>Total Due</th>
    <th>Total Cap</th>
    <th>Principal</th>
    <th>Interest</th>
    <th>Charge</th>
    <th>Tax</th>
    <th>Total Pymt</th>
    <th>Outstanding</th>
</tr>
<tr>
    <td>04 SEP 2018</td>
    <td>           </td>
    <td>           1,000.00</td>
    <td>               0.00</td>
    <td>          50,000.00</td>
    <td>                   </td>
    <td>           1,000.00</td>
    <td>                    </td>
    <td>           50,000.00</td>
    <td>         -50,000.00</td>
</tr>
<tr>
    <td>04 OCT 2018</td>
    <td>           </td>
    <td>          18,183.33</td>
    <td>               0.00</td>
    <td>          16,633.33</td>
    <td>           1,550.00</td>
    <td>                   </td>
    <td>                    </td>
    <td>                    </td>
    <td>         -33,366.67</td>
</tr>
<tr>
    <td>04 NOV 2018</td>
    <td>           </td>
    <td>          18,183.33</td>
    <td>               0.00</td>
    <td>          16,683.33</td>
    <td>           1,500.00</td>
    <td>                   </td>
    <td>                    </td>
    <td>                    </td>
    <td>         -16,683.34</td>
</tr>
<tr>
    <td>04 DEC 2018</td>
    <td>           </td>
    <td>          18,183.34</td>
    <td>               0.00</td>
    <td>          16,683.34</td>
    <td>           1,500.00</td>
    <td>                   </td>
    <td>                    </td>
    <td>                    </td>
    <td>               0.00</td>
</tr>

0 个答案:

没有答案