大约有 357 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(99) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(11) laya_api(6) Laya2.0_api(5)
...({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundle => { return bundle.write({ file: workSpaceDir + '/bin/js/bundle.js', format: 'iife', name: 'laya', sourcemap: false }); }).catch(err=>{ console.log(err); }) ...
来源: Laya_社区 发布时间: 20200918
...适配一下高刷新率。提议将【Laya.stage.frameRate】改为接收number类型参数。即【Laya.stage.frameRate = 120】即可实现120帧刷新率,使用【Laya.stage.frameRate = 0】替代【Laya.Stage.FRAME_MOUSE】,而【Laya.stage.frameRate = -1】则不限制刷新率,自动...
来源: Laya_社区 发布时间: 20240701
...urces/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset);...
来源: Laya3.0_文档 发布时间: 20251010
...传至云端 sendData() { //组织数据 let KVDataList = []; let text = Number(this.owner.text); if(!isNaN(text) && text >= 0 && text <= 9999) { this.owner.text = text.toString() } else { this.owner.text = "1000"; } //开发者要根据这个key来获取数据 let KVData = { k...
来源: Laya3.0_文档 发布时间: 20251010
...2-7562/com.dihong.testdcc I/LibraryLoader: Expected native library version number "",actual native library version number "" 05-16 15:59:48.899 7562-7562/com.dihong.testdcc I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0 05-16 15:59:48.899 7...
来源: Laya_社区 发布时间: 20190516
...窗口的物理宽度,考虑了设备像素比。 */ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** * @en The physical height of the browser window, taking into a...
来源: Laya3.0_文档 发布时间: 20251010
...ctor3; private lastPosition:Laya.Vector2; private distance:number = 0.0; private disVector1:Laya.Vector2; private disVector2:Laya.Vector2; private isTwoTouch:boolean; private first:boolean; private twoFirst:boolean; constructor(){ ...
来源: Laya_社区 发布时间: 20190531
...息(例如cookie或授权的header)。 默认为 `false。` | | timeout | number | 请求超时时间 | `withCredentials`这个属性一般用到不多,这里我们简单介绍下,在web中,发送同域的请求浏览器会将`cookie`自动加在`request header`中,但是在发送跨域请...
来源: Laya2.0_文档 发布时间: 20210714
...ctor3; private lastPosition:Laya.Vector2; private distance:number = 0.0; private disVector1:Laya.Vector2; private disVector2:Laya.Vector2; private isTwoTouch:boolean; private first:boolean; private twoFirst:boolean; constructor(){ ...
来源: Laya_社区 发布时间: 20190605
...息(例如cookie或授权的header)。 默认为 `false。` | | timeout | number | 请求超时时间 | `withCredentials`这个属性一般用到不多,这里我们简单介绍下,在web中,发送同域的请求浏览器会将`cookie`自动加在`request header`中,但是在发送跨域请...
来源: Laya2.0_文档 发布时间: 20210715