<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
let loopTimes=20;
for (i = 0; i < loopTimes; i++) {
//console.log(i);
$.post("http://redis.wlphp.com/frequency_api.php",{},function (data){
console.log(data);
});
}
</script>
php接口取消跨域限制:
header("Access-Control-Allow-Origin:*");
header('Access-Control-Allow-Methods:*');