Dies ist mein Code:Maximale Call-Stack-Größe überschritten 5
$("#submit_bill").on('click', function() {
$.post(url, {
note: note,
products: products,
quantity: quantity,
pro_txt: pro_txt,
payment_method: payment_method,
client_id: $('#client_id').val(),
type: $_billType,
id_account: $('#com_id').val(),
id_branch: $('#branch_id').val(),
total: final_total,
total_before_discount: total_before_discount,
discount: discount,
discount_type: "rs",
tree_id: tree_id,
user_id: $(this).find('#user_id').val(),
bill: 'bill',
bill_type: 'touch',
value: value,
add_bond: add_bond,
payment: payment,
print: 1,
pay_way: 0,
room_id: $('#room_id').val(),
related_bill_id: $('#related_bill_id').val(),
DetailedPay: DetailedPay,
options: options
}, function(donee) {
bill_id = donee;
$(".modal").modal("hide");
url = '<?=ADMIN_ROOT?>/bills/show_bill&ajax&touch&print&id=' + bill_id;
$('#print_div').html('<iframe src="' + url + '" id="print_frame"></iframe>');
$.post('<?=ADMIN_ROOT?>/bills/printCount&ajax', {
id: bill_id
}, function() {
location.reload()
});
}, 'JSON');
});
Ich erhalte diesen Fehler JavaScript in Chrome: Wenn einreichen klicken, wird dieser Fehler (Maximum Call-Stack-Größe überschritten) angezeigt wird, was zu lösen dieses Problem?
So 'submit' führt zu' Post', die (falls erfolgreich) zu 'Post' führt, die zu' reload' führt? –