JSPatchConvertor
JSPatchConvertor copied to clipboard
JSPatch Convertor is a tool that converts Objective-C code to JSPatch script automatically.
NSString *str = @"document.javascript" '.'会被转成() 在字符串中应该被忽略
NSString *actionUrl = [[SomeStore sharedStore].testData stringValueForKey:@"action"];
丢失if代码
``` objc @implementation ViewController - (void)loadNewData{ [[NetAPIManager sharedManager] requestWithParam:params andBlock:^(id data, NSError *error) { if (data) { if ([data isKindOfClass:[NSDictionary class]]) { }} else{ } }]; } @end ``` 转换结果为:...