我有一个包含以下代码的code.html文件.
@H_502_10@$.ajax({ type: "POST",datatype: "JSONP",url: "path",success: function(msg){ var e = document.createElement("div"); e.id = "ads"; document.body.appendChild(e); $("#ads").html(msg); } });@H_502_2@当我在浏览器中打开code.html文件时,它会出错:
**"XMLHttpRequest cannot load file://..... Origin null is not allowed by Access-Control-Allow-Origin."**@H_502_2@请帮我!!如何避免这个问题