无法将Ajax发布到IE10 [重复]

This question already has answers here:
                </div>
            </div>
                    <div class="grid--cell mb0 mt4">
                        <a href="/questions/13188500/why-is-ie-10-refusing-to-send-post-data-via-jquery-ajax" dir="ltr">Why is IE 10 Refusing to send POST data via jQuery $.ajax</a>
                            <span class="question-originals-answer-count">
                                (8 answers)
                            </span>
                    </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2013-10-18 00:52:00Z" class="relativetime">6 years ago</span>.</div>
        </div>
    </aside>

I cannot get ajax to work in IE10. No matter how many times/ways/frameworks I try, nothing works. It always returns an empty string.

<html>
<head>
    <script type="text/javascript" src="jquery-1-9-1.js"></script>
</head>
<body>
<br/>
<a onclick="doit()">go</a>
<script>
    function doit()
    {
    var myData = { "key": "value" };
    $.ajax({
        url: "myhandlepage.php",
        data: myData,
        dataType: 'json',
        type: 'POST',
        contentType: 'application/x-www-form-urlencoded',
        success: function (data) { alert("OK = " + data.eric); },
        error: function (data, status) { alert("FAILED:" + status); }
    });
    }
</script>
</body>
</html>
</div>

Possible answer: http://bugs.jquery.com/ticket/12790#comment:28

It appears to be an issue with IE10 and POST requests. So there may not be a fix for this at all. It means if people start using IE10, there will be a LOT of broken ajax sites!

This appears to be a widespread problem with POST requests on IE10, one that we do not control, so there is no need to post further feedback in this ticket. Here is the Microsoft ticket for the problem; note that you will need to create a login to view:

http://connect.microsoft.com/IE/feedback/details/771016

UPDATE (2/27/13):

Microsoft has released the final version of IE 10 for Win 7. Update includes important fixes: Internet Explorer 10 Arrives on Windows 7


Could be the data you are sending in. Try the revisions below and you can leave off contentType:

function doit()
{
var myData = { key: "value" }; //plain object
$.ajax({
    url: "myhandlepage.php",
    data: myData,
    dataType: 'json',
    type: 'POST',
    success: function (data) { alert("OK = " + data.eric); },
    error: function (data, status) { alert("FAILED:" + status); }
});
}

From the jquery docs:

contentType (default: 'application/x-www-form-urlencoded; charset=UTF-8')

Also, clarify the operating system and IE10 version.

From the bug report:

This is only an issue on the desktop in Windows 7. IE10 in Windows 8 is working correctly.