iOS module config

This commit is contained in:
pengfei.zhou
2019-07-26 18:15:51 +08:00
parent f0b003cb66
commit bc1c283b47
12 changed files with 242 additions and 99 deletions

View File

@@ -26,15 +26,15 @@ - (void)viewDidLoad {
label.centerX = self.view.width/2;
label.centerY = self.view.height/2;
[self.view addSubview:label];
DoricJSCoreExecutor *jse = [[DoricJSCoreExecutor alloc] init];
@try{
NSString *ret = [jse loadJSScript:@"typef Reflect" source:@"test"];
NSLog(@"js result %@", ret);
}@catch(NSException *e){
NSLog(@"catch Exception: %@,reason is %@",e.name,e.reason);
}
DoricLog(@"%@",@"testxxxxx");
DoricLog(@"test2rwr");
// DoricJSCoreExecutor *jse = [[DoricJSCoreExecutor alloc] init];
// @try{
// NSString *ret = [jse loadJSScript:@"typef Reflect" source:@"test"];
// NSLog(@"js result %@", ret);
// }@catch(NSException *e){
// NSLog(@"catch Exception: %@,reason is %@",e.name,e.reason);
// }
// DoricLog(@"%@",@"testxxxxx");
// DoricLog(@"test2rwr");
DoricJSEngine *jsengine = [[DoricJSEngine alloc] init];
}