MessengerJS
MessengerJS copied to clipboard
有个BUG,IE6\7的消息格式和标准浏览器的不一致,但是后面是统一的处理,所以起不到兼容作用
IE8+:
this.target.postMessage(this.prefix + '|' + this.name + 'Messenger' + msg, '*');
ie6\7
targetFunc(this.prefix + msg, window);
应改为:
//原版这里有个BUG,按照ie8+以及现代浏览器的消息格式传入 targetFunc(this.prefix + '|' + this.name + 'Messenger' + msg, window);