在360浏览器中,点击确定选择后没反应,提示:无法获取未定义或 null 引用的属性“document”
在360浏览器中,点击确定选择后没反应,提示:无法获取未定义或 null 引用的属性“document”,而在IE,QQ浏览器中正常
banji.htm:
<script type="text/javascript" src="/js/oa.js"></script>
<a href="javascript:oa_insert_banji({$banji.id},'{$type}');">确定选择</a>
oa.js:
function oa_insert_banji(banji_id,banji_type)
{
try
{
if(banji_type=='cur')
{
if( banji_id == $("input[name=pre_banji_id]",window.opener.document).val() )
{
alert('班级不能一样!');
return false;
}
$("input[name=cur_banji_id]",window.opener.document).val(banji_id);
$("#cur_didian",window.opener.document).html( $("#p_didian_"+banji_id).html() );
$("#cur_kemu",window.opener.document).html( $("#p_kemu_"+banji_id).html() );
$("#cur_banzhuren",window.opener.document).html( $("#p_banzhuren_"+banji_id).html() );
$("#cur_shijian",window.opener.document).html( $("#p_shijian_"+banji_id).html() );
}
else
{
if( banji_id == $("input[name=cur_banji_id]",window.opener.document).val() )
{
alert('班级不能一样!');
return false;
}
$("input[name=pre_banji_id]",window.opener.document).val(banji_id);
$("#pre_didian",window.opener.document).html( $("#p_didian_"+banji_id).html() );
$("#pre_kemu",window.opener.document).html( $("#p_kemu_"+banji_id).html() );
$("#pre_banzhuren",window.opener.document).html( $("#p_banzhuren_"+banji_id).html() );
$("#pre_shijian",window.opener.document).html( $("#p_shijian_"+banji_id).html() );
}
window.close();
}
else
{
txt="错误描述: " + err.description + "\n\n" /*在360里提示错误:无法获取未定义或 null 引用的属性“document”*/
alert(txt)
}
}