提示用户升级游览器

方法1

head标签内放入该代码.

<script type="text/javascript">
var userAgent = navigator.userAgent.toLowerCase();
var msie = /msie/.test( userAgent ) && !/opera/.test( userAgent );
var version = (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0,'0'])[1];
var _test = {6:'2.0',7:'3.0',8:'4.0',9:'5.0',10:'6.0',11:'7.0'};
var release = _test[document.documentMode]||_test[parseInt(version)];
if (msie && parseInt(release,10)<4){
	location.href = "https://quiun.com/source/qpf-ui/ieUpdate.html";
}
</script>

				
html
内容1