• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 156 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)

81. bind函数的作用 [ 55%]

...r a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg An object to which the this keyword can refer inside the new funct...

来源: Laya_社区 发布时间: 20180130

82. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 54%]

...好的,在谷歌下报错运行不了   报的是这个错 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2016-08-31 0 2 分享 微博 QZONE 微信 xiaobear250 赞同来自: 写得...

来源: Laya_社区 发布时间: 20160722

83. 请教一下Laya和Flash里的skewXY之间的差别 [ 54%]

...0px; width:100px; height:100px; background-color:yellow; -webkit-transform-origin: 0 0; /* Safari 和 Chrome */ -webkit-transform:skew(0,110deg); /* Safari 和 Chrome */ } </style> </head> <body> <div>Hello World</div> </body> </html> 2016-08-17 0 0 分享 ...

来源: Laya_社区 发布时间: 20160815

84. 谷歌浏览器无法使用skeleton.load [ 53%]

...:/Users/suteam/Documents/demoBojue_Laya/bin/h5/other/spine/kente.sk: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 2018-01-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

来源: Laya_社区 发布时间: 20180111

85. webaudio 在iframe中使用, android chrome中没声音 [ 53%]

...中的跨域webaudio自动播放。参考Block Web Audio autoplay on cross origin iframes https://bugs.chromium.org/p/ch ... 14115   为了解决这个问题,我又参考了https://github.com/photonstorm/phaser/issues/2913 在引擎WebAudioSound源码中添加了几行,解决了问题。官方...

来源: Laya_社区 发布时间: 20171114

86. WebSocket的握手失败 [ 53%]

...ction: Upgrade Pragma: no-cache Cache-Control: no-cache Upgrade: websocket Origin: file:// Sec-WebSocket-Version: 13 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) LayaAirIDE/1.12.2 Chrome/56.0.2924.87 Electron/1.6.6 Safari/537.36 Accept-Encoding: gzip, defla...

来源: Laya_社区 发布时间: 20181120

87. 使用WebGL后,图片加载出错,不使用可以正常加载 [ 53%]

...r: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The cross-origin image at http://127.0.0.1/laya/studyLay ... y.png may not be loaded.   对应的js错误行代码: (xoffset-1 >=0)&& (gl.texSubImage2D(0x0DE1,0,xoffset-1,yoffset,0x1908,0x1401,bitmap)); 2016-06-01 添加...

来源: Laya_社区 发布时间: 20160601

88. viewportPointToRay产生的射线始终有偏差,是为什么? [ 53%]

...xt = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); private _camera:Camera; private _ray:Ray = ne...

来源: Laya_社区 发布时间: 20180201

89. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 52%]

...uest.url, this.currentRequest.data, "post", "text", ["Access-Control-Allow-Origin","*", "Access-Control-Allow-Headers","X-Requested-With", "Access-Control-Allow-Methods","GET,POST"]); 2020-06-29 0 0 分享 微博 QZONE 微信 金风 赞同来自: 解决了 网址带参数的情况 post会自动变...

来源: Laya_社区 发布时间: 20200629

90. 怎么才能像HTML5中那样直接操作Canvas [ 52%]

...sition: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"...

来源: Laya_社区 发布时间: 20170502