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

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

11. 微信工具Js的Function问题 [ 71%]

微信工具Js的Function问题 var args = ["a","b","return a-b"]; var f = new Function(args[0], args[1], args[2]); var t = Function.apply(null, args); console.log( f(1,3) ); console.log( t(1,3) ); 这两个函数在Layabox开发时的目的都是生成一个不确定参数的函数,但导出到...

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

12. layaair2-cmd compile 编译不了 [ 71%]

...  at process._tickCallback (internal/process/next_tick.js:61:11)     at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)     at startup (internal/bootstrap/node.js:266:19)     at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3) exit:1 请问这个怎么解决。百度...

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

13. js的问题 [ 69%]

js的问题 function debounceFunc(env, func) { var flag = true;                     //剩余形参 return function (...args) { if (flag) { func.apply(env, args); flag = false; setTimeout(() => flag = true, 1000); } } } 按钮点击事件调用这个方法可以使他传入一...

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

14. protobuf.js [ 69%]

...1 个回复 kezhiyu 赞同来自: 182*****278 小程序 不支持 eval 和 Function 这里是说,如果有需要eval 的地方,通常都可以通过把 要执行的字符串 直接写入js文件, 来达到调用的效果  比如 假设我有全局变量 ls, 我 eval('ls.g.x=1') 其实是...

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

15. laya.d3.math.OrientedBoundBox [ 68%]

...该包围盒的中心Constructor DetailOrientedBoundBox()Constructorpublic function OrientedBoundBox(extents:Vector3, transformation:Matrix4x4) 创建一个 OrientedBoundBox 实例。 Parameters extents:Vector3 — 每个轴长度的一半  transformation:Matrix4x4 — 包围盒的位置和缩放, ...

来源: Laya2.0_api 发布时间: 20190513

16. 提示LAYA核心库中找不到 Laya.__awaiter函数 [ 66%]

...回复 layabox小高 赞同来自: 您好,可以参照下这个方法。 function __awaiter(thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejecte...

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

17. Laya2.6 vscode 编译错误 [ 65%]

...  at process._tickCallback (internal/process/next_tick.js:61:11)     at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)     at startup (internal/bootstrap/node.js:283:19)     at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) ——————————————...

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

18. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 65%]

...neScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ShowMsg():void { trace("ShowMsg"); showMsgFunc && showMsgFunc(); } } ``` 在...

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

19. UTF-8 ArrayBuffer和字符串之间的转换 [ 64%]

UTF-8 ArrayBuffer和字符串之间的转换 [code]function uintToString(uintArray) { var encodedString = String.fromCharCode.apply(null, uintArray), decodedString = decodeURIComponent(escape(atob(encodedString))); return decodedString; }这种方法不行! [/code] 2019-04-12 添加评论 免费...

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

20. ts如何解析ArrayBuffer二进制数据? [ 62%]

...内容相关的链接 提交 1 个回复 贾如初见 赞同来自: [code]function uintToString(uintArray) { var encodedString = String.fromCharCode.apply(null, uintArray), decodedString = decodeURIComponent(escape(atob(encodedString))); return decodedString;} JS可以通过这个方法解析 但是...

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