springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2021-08-23 11:46:47
256
有人能帮我吗?在这里我想求和现有的和无限的输入值,这很好,但在这里我想输入现有的值,并直接将输入值相加,我使用了setInterval函数,但它不起作用,这是什么问题?
HTML:
<form class="form-horizontal" id="whereEntry" method='post' action=''>
<input type="text" class="income_count span1 register_input" value="10">
<br>
<input type="text" class="income_count span1 register_input" value="10">
<br>
<input type="text" class="income_count span1 register_input" value="20">
<br>
<input type="text" class="income_count span1 register_input" value="30">
<br>
<input type="text" class="income_count span1 register_input" value="0">
<br>
<input type="text" class="income_count span1 register_input" value="0">
<br><br>
<input type="text" class="span2 register_input" id="income_sum">
<br>
</form>
JavaScript JQuery:
<script type="text/javascript">
function TotalSUM() {
var $form = $('#whereEntry'),
$summands = $form.find('.income_count'),
$sumDisplay = $('#income_sum');
$form.delegate('.income_count', 'change', function ()
{
var sum = 0;
$summands.each(function ()
{
var value = Number($(this).val());
if (!isNaN(value)) sum += value;
});
$sumDisplay.val(sum);
});
}
</script>
<script>
$(document).ready(function(){
setInterval(TotalSUM, 1);
});
</script>
顺晟科技:
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11