felix icon indicating copy to clipboard operation
felix copied to clipboard

请教个问题

Open ApesTalk opened this issue 5 years ago • 0 comments

如果我这样使用的话,数组a却依然是空的,这是为什么呢?

NSString *str = @"var a = callClassMethod('NSMutableArray', 'array'); " "var n = callClassMethod('NSNumber', 'numberWithInteger:', 1024); " "callInstanceMethod(a, 'addObject:', n); " "console.log(a);" "})"; [Felix evalString:str];

ApesTalk avatar Mar 28 '19 09:03 ApesTalk