日期:2014-05-16  浏览次数:20275 次

关于JS代码兼容360的问题
       在JS中采用模式对话框,怎么去兼容360 ,使模式框体回传值可用,
       采用的是showModalDialog
360 JS showModalDialog

------解决方案--------------------
ie
window.returnValue = resultValue;
chrome
if(window.opener)
{
window.opener.xxxx(resultValue); //xxx为父窗口的某某方法 
}
------解决方案--------------------
window.opener.xxxx(resultValue); //xxx为父窗口的某某方法 
将返回值作为参数传到父窗口的某个方法(调用父窗口的方法)