如图片上说明的一样
楼下我会贴出我的js 大神帮看看
请说出问题 并告诉我怎么更改 谢谢
http://ask.csdn.net/questions/234954
不是回过了
function current(){
var d=new Date();
str='';
str +=d.getFullYear()+'年'; //获取当前年份
str +=d.getMonth()+1+'月'; //获取当前月份(0——11)
str +=d.getDate()+'日';
return str; }
$(function(){
var $timeStr=current();
$("#EntTime37").val($timeStr) ;
});
//计算收益
function BondCalculator(){
interestrate = parseFloat(interestrate) || 0;
money = parseFloat(money) || 0;
var three = 0;
three = money*(interestrate/100)*(360*3);
$("#three").val(three);
}
$(document).ready(function(){
$("#money").change(function () {
interestrate = parseFloat($("#interestrate").val());
BondCalculator(money,interestrate);
});
$("#interestrate").change(function () {
money = parseFloat($("#money").val());
BondCalculator(money,interestrate);
});
var money = parseFloat($("#money").val());
var interestrate = parseFloat($("#interestrate").val());
BondCalculator(money,interestrate);
});
先生不出来时间,调试看看你的时间控件是不是出了问题。