XMLHttpRequest cannot load!!!!
代码:
xtype: "tbbutton",
minWidth: 30,
minHeight: 30,
text: "测试",
cls: "x-btn-text-icon",
icon: "Content/icons/bin_empty.png",
handler: function (btn, e) {
var userUrl = "http://localhost:3301/demo/Index.ashx?type=map_user_list";
var lineUrl = "http://localhost:3301/demo/Index.ashx?type=map_user_line";
LoadUser(userUrl, lineUrl);
其中"http://localhost:3301/demo/Index.ashx?type=map_user_list"和"http://localhost:3301/demo/Index.ashx?type=map_user_line"是同一个解决方案下的另一个工程下的文件Index.ashx,功能是根据?。。后面的不同返回不同的字符串
报错为:XMLHttpRequest cannot load http://localhost:3301/demo/Index.ashx?type=map_user_list. Origin http://localhost:3298 is not allowed by Access-Control-Allow-Origin.
这个错误是什么意思?怎么解决啊?求助