0

這部分代碼適用於所有瀏覽器,但不適用於IE。你能幫我解決這個問題嗎?ExternalInterface as3和ajax(jQuery)不能在IE中工作

function getData(userId, instrumentId, minStep) { 
    alert(1); // worked! 
    console.log(userId, instrumentId, minStep); 
    $.ajax({ 
     type: "POST", 
     url: '/controllers/ajax.php', 
     data: "instrument=" + instrumentId + '&user=' + userId, 
     dataType: 'json', 
     cache: false, 
     success: function(msg) { 
      alert(2); // doesn't work 
      document.getElementById("chart").dataFromJS(msg, minStep); // "chart" - id of flash player object loaded using swfobject 
     } 
    }) 
} 
+0

當你說它不起作用在IE中,有什麼錯誤或問題? – JcFx

+1

我首先擺脫了console.log,因爲它在IE中不受支持。 – NoobsArePeople2

回答

2

我有一個類似的問題,至少在我意識到什麼後,這真的很愚蠢。儘量不要在IE中使用console.log ...也許會是一樣的,祝你好運;)