标签:
报了个错
var dt2=new Date(d2Arr[0],d2Arr[1],d2Arr[2]);
if(dt1>dt2){//比较日期
alert("开始日期不能晚于结束日期!");
return;
}
//解了个觉
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
if (userAgent.indexOf("Chrome") > -1){//chrome浏览器
baobiao.src=‘../ReportEmitter?rpt=<%=rpt%>.brt¶ms=<%=canshu%>start_time=‘+ start_time.value+ ‘;end_time=‘+ end_time.value+ ‘;deptcodevalue=‘ + deptcodevalueyw;
}else{//其他浏览器
baobiao.location.href=‘../ReportEmitter?rpt=<%=rpt%>.brt¶ms=<%=canshu%>start_time=‘+ start_time.value+ ‘;end_time=‘+ end_time.value+ ‘;deptcodevalue=‘ + deptcodevalueyw;
}
}
</script>
<div>
<iframe id="baobiao" href="" frameBorder=0 scrolling=no width="100%" height="100%" src="../ReportEmitter?rpt=<%=rpt%>.brt¶ms=<%=canshu%>"></iframe>
</div>
浏览器兼容问题 chrome iframe location href
标签:
原文地址:http://www.cnblogs.com/wuhailong/p/5125242.html