天天看点

IE8中ajax 跨域获取html模板解决方法

报错:

statustext :"no transport"

1,只有当浏览器是ie8 时才引入js:

IE8中ajax 跨域获取html模板解决方法

<!--[if ie 8]>  

    <script type="text/javascript"  

            src="http://${static_domain}/chanjet/js/lib/common/jquery.xdomainrequest.js"></script>  

    <![endif]-->  

2,当ie版本在ie10以下时才引入:

IE8中ajax 跨域获取html模板解决方法

<!--[if lt ie 10]>  

上一篇: doT JS

继续阅读