shiyang No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access.用FB 启动chrome出这个错,但是在layaIde里面启动没这个错,想知道一下原因,求指点
w1114367261 将ajax请求中的dataType属性设置为“jsonp”,jsonp是专门用来解决跨域访问而诞生的 如果还是不行的话 在ajax访问中不指定contentType:"application/json; charset=utf-8",使用默认的就可以了