簡易javascript貸款試算程式碼
<table class="suning" id="suning">
<tbody>
<tr>
<th>貸款本金</th>
<th><input name="ben" placeholder="貸款本金" type="text" /></th>
<th>還款期數</th>
<th><input name="qi" placeholder="還款期數" type="text" /></th>
<th>月利率‰</th>
<th><input name="lv" placeholder="月利率‰" type="text" /></th>
</tr>
<tr>
<td>還款期</td>
<td>還款起始日期</td>
<td>月還利息</td>
<td>月還本金</td>
<td>月還換款額</td>
<td>剩餘本金</td>
</tr>
</tbody>
</table>
<p><input suning="jisuanqi" type="button" value="計算" /></p>
<script>
$(function(){