Php 为什么IE无法获取jQuery POST()结果?

Php 为什么IE无法获取jQuery POST()结果?,php,jquery,internet-explorer,post,Php,Jquery,Internet Explorer,Post,我将jQuery POST()函数与PHP结合使用。 jQuery: token = $('input[name=signin-token]').val(); $.post('controller/create-captcha.php',{ signin_token: token }, function(data){ $('#captcha').attr('placeholder',data); }); <?php session_start(); if (isse

我将jQuery POST()函数与PHP结合使用。
jQuery:

token = $('input[name=signin-token]').val();
$.post('controller/create-captcha.php',{
     signin_token: token
}, function(data){
     $('#captcha').attr('placeholder',data);
});
<?php
session_start();

if (isset($_POST['signin_token']) && isset($_SESSION['signin-token']) 
    && $_POST['signin_token'] == $_SESSION['signin-token']) {
    $rand1 = rand(1,10);
    $rand2 = rand(1,10);

    $_SESSION['captcha'] = $rand1+$rand2;
    echo $rand1.' + '.$rand2. ' =';
}
?>
PHP:

token = $('input[name=signin-token]').val();
$.post('controller/create-captcha.php',{
     signin_token: token
}, function(data){
     $('#captcha').attr('placeholder',data);
});
<?php
session_start();

if (isset($_POST['signin_token']) && isset($_SESSION['signin-token']) 
    && $_POST['signin_token'] == $_SESSION['signin-token']) {
    $rand1 = rand(1,10);
    $rand2 = rand(1,10);

    $_SESSION['captcha'] = $rand1+$rand2;
    echo $rand1.' + '.$rand2. ' =';
}
?>


这段代码在Chrome和Firefox中都运行良好。但IE根本无法取得结果。问题是什么?我如何解决它?

问题的可能重复是IE,解决方案是chrome和firefox SCNR,但说真的,我们谈论的是什么版本的IE?IE在使用定义的标准方面总是比其他浏览器有更多的问题,这就是为什么几乎所有用JS或CSS编写的东西都需要解决的原因。jQuery内置了许多变通方法,但不是针对每个版本的IE@Nordenheim,这个答案并没有解决我的问题。@Franzgleichman我正在Windows 8.1上使用IE v11,这是一篇偶然的跨域文章吗?