【问题标题】:ExternalInterface as3 and ajax (jQuery) not working in IEExternalInterface as3 和 ajax (jQuery) 在 IE 中不起作用
【发布时间】:2025-12-31 01:50:06
【问题描述】:

这部分代码适用于所有浏览器,但不适用于 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
        }
    })
}

【问题讨论】:

  • 当你说它在IE中不起作用时,是什么错误或问题?
  • 我首先要摆脱 console.log,因为 IE 不支持它。

标签: jquery ajax actionscript-3 internet-explorer externalinterface


【解决方案1】:

我也遇到过类似的问题,而且确实很愚蠢,至少在我意识到这是什么之后。尽量不要在IE中使用console.log ...也许会一样,祝你好运;)

【讨论】:

    最近更新 更多