📅  最后修改于: 2022-03-11 15:04:22.153000             🧑  作者: Mango
// HazaaZOOZ - jquery - How to get text from input Javascript >> jquery
$(document).ready(function() {
$('.add').click(function() {
var value = parseFloat($('#total').text()) + parseFloat($(this).data('amount'))/100
$('#total').text( value.toFixed(2) );
});
})