jquery post函数仅在IE11上返回错误

时间:2014-01-07 01:10:40

标签: jquery ajax post internet-explorer-11

我使用下面的脚本发布与ajax的联系表单,它适用于除IE11之外的所有浏览器。我只粘贴了ie11表现不同的代码片段。

$.post($(this).attr('action'), formValues, function(data)
{
    if ( data == 'success' )
    {
        contactForm.clearForm();
    }
    else
    {
        $alert.addClass('error');
    }
});
IE11中的

正在执行语句并且表单未发送到服务器。该代码有什么问题?

0 个答案:

没有答案