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

大约有 81 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)

61. [LayaNative 2.0]请问android单机包怎么热更新的 [ 56%]

... = (yield asyncs.downloadSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr);第一句是从哪里获取netssetsid资源。这里我运行之后 Downloaded http://127.0.0.1/laya/update/a ... 0.0.1 s=...

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

62. 两个Laya项目编译完的js之间怎么跳转? [ 55%]

...Browser.createElement("script"); var jurl:String = "Main.js?" + "r" + Math.random(); script.src = jurl; Browser.document.body.appendChild(script); 我采用这种方式不成功! 2018-01-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

63. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 55%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i = 0...

来源: Laya2.0_文档 发布时间: 20210715

64. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

... window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel &lt; channels; channel++) { // This gives us the actual ArrayBuffer that contains the data var nowBuffering = myArrayBuffer.getChannelData(channel); for (var i ...

来源: Laya3.0_文档 发布时间: 20251010

65. 动态加载的 animation第二次加载的时候不显示 [ 53%]

... if (i!=whichistrue) { aniname="lose_1_"+aniname+".ani"; } else { ran=Math.random(); aniname="win_1_"+aniname+".ani"; } item.loadAnimation(aniname); item.x=60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.doworkui.addChild(item);   2017-11-06 0 0 分享 微博 QZONE 微信 ysshao ...

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

66. 关于缓动函数from的一些问题记录 [ 53%]

...function changeColor(text){ console.log("update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } console.log(te...

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

67. 请问代码有缓存怎么办,更新出去的代码,浏览器没有更新到 [ 53%]

...ei - as3、as2、h5 赞同来自: &lt;script src='LayaSample.max.js?'+Math.random() loader='laya'&gt;&lt;/script&gt; 我是在后面加个随机数,这样能看到更新的laya js,如果更新同名图片,在loadImg时在图片后面加个图片版本号“图片url?v=”+imgVersion,每次...

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

68. iOS平台,WiFi连网正常,4G下经常失败 [ 50%]

... = (yield asyncs.downloadSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr); if (!assetsidStr) { if (curassets &amp;&amp; curassets != "") { if (window["onLayaInitError"]) { isDccOk = false; window[...

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

69. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...(var i=0;i&lt;10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC"; this.text.x=Math.random()*550; this.text.y=Math.random()*400; textBox.addChild(this.text); } Laya.stage.addChild(textBox); } } 下面是笔者电脑上的运行时截图,...

来源: Laya3.0_文档 发布时间: 20251010

70. dcc和cdn的问题 [ 49%]

...更新了,会自动给文件加版本号:res.cdn.xxx/res/a.png?v=Math.random 这种方式么,这种好像只能破坏本地缓存,无法破坏节点缓存吧? 麻烦给个详细解释,感谢!

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