我在以下代码中不断收到错误意外令牌“)” 。谁能告诉我我的代码有什么问题?
function postFrom()
{
/* contactform */
$.post('/contact_owner/send/', {
customer_name: $('[name="customer_name"]').val(),
customer_phone: $('[name="customer_phone"]').val(),
customer_email: $('[name="customer_email"]').val(),
customer_message: $('[name="customer_message"]').val() +' \n-Adress: '+ $('[name="customer_address"]').val() +' -Postnummer: '+ $('[name="customer_zipcode"]').val() +' -Ort: '+ $('[name="customer_city"]').val() + ' -Markisvävar: '+ final,
subject:$('[name="customer_name"]').val() +' - '+ $('[name="sub"]').val() }, function(data){
if (data) {
$('#status_notice').css('color', 'red');
$('#status_notice').html(data);
} else {
$('#status_notice').css('color', 'green');
$('#status_notice').html('Ditt meddelande skickades.');
$('[name="customer_name"]').val('');
$('[name="customer_phone"]').val('');
$('[name="customer_email"]').val('');
$('[name="customer_address"]').val('');
$('[name="customer_zipcode"]').val('');
$('[name="customer_city"]').val('');
$('[name="customer_message"]').val('');
$('input[type=checkbox]').each(function()
{
this.checked = false;
});
}
});
event.preventDefault();
});
});
/* contactform END */
}//end function