代码如下,可是这个页面无法显示 ,且一直报错,"This page contains the following errors:error on line 1 at column 7: internal error: detected an error in element contentBelow is a rendering of the page up to the first error."
(function()
{
var Stage = Laya.Stage;
var Text = Laya.Text;
var WebGL = Laya.WebGL;
(function()
{
// 不支持WebGL时自动切换至Canvas
Laya.init(200, 300, WebGL);
Laya.stage.alignV = "middle";
Laya.stage.alignH = "center";
Laya.stage.scaleMode = "showall";
//自动竖屏,让游戏的水平方向始终与浏览器显示屏幕的最长边保持垂直。
Laya.stage.screenMode = "vertical";
var iframe = new laya.html.dom.HTMLIframeElement();
iframe.href="http://www.baidu.com";
Laya.stage.addChild(iframe);
//showText();
})();
4 个回复
lixiaodog
赞同来自:
(function()
{
var Stage = Laya.Stage;
var Text = Laya.Text;
var WebGL = Laya.WebGL;
(function()
{
// 不支持WebGL时自动切换至Canvas
Laya.init(200, 300, WebGL);
Laya.stage.alignV = "middle";
Laya.stage.alignH = "center";
Laya.stage.scaleMode = "showall";
//自动竖屏,让游戏的水平方向始终与浏览器显示屏幕的最长边保持垂直。
Laya.stage.screenMode = "vertical";
var iframe = new laya.html.dom.HTMLIframeElement();
iframe.href="http://www.baidu.com";
Laya.stage.addChild(iframe);
//showText();
})();
wudi199553
赞同来自:
ymsdandan
赞同来自:
ymsdandan
赞同来自: