由于jquery禁止通过ajax进行跨域请求,所以在通过ajax请求另外一个不同域名服务api的时候会报错:“No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access”最简单的两个解决办法:1、在django中
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号