weixin_33736048 2015-12-24 10:44 采纳率: 0%
浏览 21

IE 10浏览器Ajax调用问题

I have one Api to get html content,something like this

"http://localhost/somefolder/coneten#/home"

$.ajax({
    url:"http://localhost/somefolder/coneten#/home",
    dataType:"json",
    error:function(xhr, status, errorThrown) {
        console.log();
    },
    success:function(json) {
             console.log();
    }
});

When i run my application in IE 10 browser i am getting 404 error because of IE converting my api into

"http://localhost/somefolder/coneten%23/home"(# into %23)

So it is not hitting server. but in all the other browsers it is working and url is not converting. Please anybody help me to fix this issue.

  • 写回答

0条回答 默认 最新

    报告相同问题?