我收到错误“'XSLTProcessor'未定义”仅在IE 11中。 我尝试google它,但没有找到任何有用的东西。
这是我的代码:
function attchmentList(p)
{
var sender = new XMLHttpRequest();
sender.open("GET","Attachments.aspx?id="+p, false);
sender.send(null);
oDoc = (new DOMParser()).parseFromString(sender.responseText, "text/xml");
var oItem = oDoc.getElementsByTagName("item");
document.getElementById("lblAttachments").innerHTML = oItem.length;
oXSL = load("AttachmentList.xslt");
var processor = new XSLTProcessor();
processor.importStylesheet(oXSL);
var o = processor.transformToDocument(oDoc);
var CI_obj = document.getElementById("files_list");
CI_obj.innerHTML = serialize(o);
}
提前致谢