大约有 79 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0042 秒)
Laya_社区(60) laya_api(4) Laya2.0_api(4) Laya3.0_api(4) Laya2.0_示例(2) Laya_示例(2) Laya3.0_文档(2) Laya2.0_文档(1)
... } ExportJavaFunction.CallBackToJS(JSBridge.class,"testAsyncCallback", obj.toString()); } }); } 1.3 iOS/OC层 发布后,使用XCode打开项目,在类JSBridge中添加下列函数: +(NSString*)testString:(NSString*)value { NSLog(@"OC: %@",value); return @"LayaBox"; } +(NSNumber*)testNumber:(NSNu...
来源: Laya3.0_文档 发布时间: 20250422
...failed Status:" + this._http.status + " text:" + this._http.statusText + e.toString()); } 4、URL中formatURL方法中使用customFormat传入参数有问题, 多了个base public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,...
来源: Laya_社区 发布时间: 20180820
...itivity; // m_debugTip.text = ( currentTouchDistance - lastTouchDistance ).ToString() + " + " + targetDistance.ToString(); //把距离限制住在min和max之间 //备份上一次触摸点的位置,用于对比 this.oldPosition1 = tempPosition1; this.oldPosition2 = tempPosition2; this.m_IsSingleFi...
来源: Laya_社区 发布时间: 20170714
...itivity; // m_debugTip.text = ( currentTouchDistance - lastTouchDistance ).ToString() + " + " + targetDistance.ToString(); //把距离限制住在min和max之间 //备份上一次触摸点的位置,用于对比 this.oldPosition1 = tempPosition1; this.oldPosition2 = tempPosition2; this.m_IsSingleFi...
来源: Laya_社区 发布时间: 20190224
...mStoragePath = Environment.getExternalStorageDirectory().getAbsolutePath().toString(); } } private String getAudioPath(){ String audioPath = mStoragePath + "/"; audioPath += UUID.randomUUID().toString() + ".wav"; return audioPath; } public boolean onTouch(final String type){ switch(type){ case "d": ...
来源: Laya_社区 发布时间: 20170722
... tAnimationSprite.setTileTextureSet(tIndex.toString(), tTileTexSet); gridSprite.addAniSprite(tAnimationSprite); gridSprite.addChild(tAnimationSprite); ...
来源: Laya_社区 发布时间: 20220627
...rray<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void; /** * 清理对象身上的所有定时器。 * @param ca...
来源: Laya_社区 发布时间: 20171109
...TAG, "文件大小:" + buffer. length); Log. i(TAG, "内容:" + buffer.toString()); buffer = new byte [fis.available()]; fis.read(buffer); os.write(buffer); os.flush(); os.close(); fis.close(); socket.close(); } else { os.println( "HTTP/1.0 404 FileNotFonud!" ); os.close(); } } catch (IOExceptio...
来源: Laya_社区 发布时间: 20160104
...mp;& text >= 0 && text <= 9999) { this.owner.text = text.toString() } else { this.owner.text = "1000"; } //开发者要根据这个key来获取数据 let KVData = { key: "playerData", value: this.owner.text } KVDataList.push(KVData); //@ts-ignore wx.setUserCloudStorage({ KVDataList...
来源: Laya3.0_文档 发布时间: 20251010