大约有 3 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0017 秒)
...ue ? NO : YES]; } +(void)testAsyncCallback:(NSString*)json { //js thread NSError* error = nil; NSData* jsonData = [json dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary* dict = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&error]; NSLog(@"OC:...
来源: Laya3.0_文档 发布时间: 20250310
...LayaNative底层LOG分为五种: enum class LogType { Debug, Info, Warn, Error, Fatal, }; 每种日志对应的日志级别如下: enum class LogLevel { Debug = 5, Info = 4, Warn = 3, Error = 2, Fatal = 1, Close = 0, }; 在js脚本中,开发者可以通过以下函数设置日志级别,默认...
来源: Laya3.0_文档 发布时间: 20250310
...发送的数据时触发。 Event.CLOSE:连接关闭时触发。 Event.ERROR:连接出错时触发。 示例代码: // 注册事件监听示例 this.socket.on(Laya.Event.OPEN, this, this.onSocketOpen); this.socket.on(Laya.Event.MESSAGE, this, this.onMessageReceived); this.socket.on(Laya.Event....
来源: Laya3.0_文档 发布时间: 20250310