IE下contentWindow对象与FF、Chrome下的区别
在ie中frame(iframe)标签通过name和id获取的对象是不同的。
通过name获取的本身就是contentWindow对象。
所以 在ie中不用再找contentWindow了
例:
let commitObj = window.frames["child_iframe_rel"];
let targetOrigin = "*";
//传参
let input_params = {...};
//判断是否是IE下的
if(this.isIE) {
commitObj.postMessage(input_params, targetOrigin);
} else { //非IE下
commitObj.contentWindow.postMessage(input_params, targetOrigin);
}

浙公网安备 33010602011771号