<html>
<body>
</body>
</html>
<script>
var script = document.createElement('script');
script.type = 'text/javascript';
//script.src = 'http://10.10.10.11:7001/demo/do/getClients?callback=JSON_CALLBACK';
script.src = 'http://www.baidu.com?callback=JSON_CALLBACK';
// ie -> onreadystatechange
script.onload = script.onerror = function() {
alert(111);
};
document.body.appendChild(script);
</script>
运行效果:仍然能够正常返回第二次请求
IE:
Chrome: