我用
var p:HTMLIframeElement = new HTMLIframeElement();
Laya.stage.addChild(p);
p.href = "test.html";
p.y = 200;
一执行就报错是为什么啊?错误如下:
Utils.parseXMLFromString=function(value){
var rst;
value=value.replace(/>\s+</g,'><');
rst=(new DOMParser()).parseFromString(value,'text/xml');
if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){
throw new Error(rst.firstChild.firstChild.textContent);
}
return rst;
}