实时监听input值的变化
<input type="text" id="borrowValue" maxlength="20">
<span id="repayValue">0</span>
$('#borrowValue').bind('input propertychange', function() {
var borrowValue = $(this).val();
var repayValue = borrowValue.length;
$("#repayValue").html(repayValue);
});