哪里看的API top.window[index]有getReturnData?应该在top.layer.open(success:function(){//这里写回调})里面写回调吧
先把你的iframeWin console出来看看对不对