0
このテスト(クロスドメインAJAXを送信するかどうか)は、Internet Explorerでは常にfalseですが、Microsoft Edgeで動作します。失敗テストIE上の同じ起点
IE上に<a>
要素が挿入されていないようです。
function testSameOrigin(url){
/*
Return true if belongs to the same origin
*/
var loc = window.location,
a = document.createElement('a');
a.href = url;
return a.hostname == loc.hostname &&
a.port == loc.port &&
a.protocol == loc.protocol;
}
どうすればこの問題を解決できますか?
ありがとうございます。
Internet Explorer 12は存在しますか?最高のバージョンは11.0.28 –
はい、12と13はIEではなく、新しい1つのMicrosoft EdgeはWindows 10のみです。 – Acute
エッジが完全に書き換えられます。 –