responseText works but responseXML is always null

后端 未结 3 1070
醉梦人生
醉梦人生 2021-01-13 10:57

I\'ve looked through every answer i can find on here and can\'t solve this. I\'m pretty sure I havn\'t missed anything obvious.

I\'m trying to load map markers base

3条回答
  •  萌比男神i
    2021-01-13 11:16

    You can try parsing XML yourself:

    var parser = new DOMParser();
    var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml");
    

    Like this.

提交回复
热议问题