DoricJSEngine

This commit is contained in:
pengfei.zhou
2019-07-27 19:16:02 +08:00
parent f792a3ac33
commit b0370847d9
2 changed files with 56 additions and 2 deletions

View File

@@ -37,6 +37,15 @@ - (void)viewDidLoad {
// DoricLog(@"test2rwr");
DoricJSEngine *jsengine = [[DoricJSEngine alloc] init];
[self test:@"method",@"1",@"2",nil];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn setTitle:@"sss" forState:UIControlStateNormal];
btn.tag = 111;
[btn addTarget:self action:@selector(testBtn:) forControlEvents:UIControlEventTouchUpInside];
}
- (void)testBtn:(UIButton *)btn {
btn.tag;
}
-(void)test:(NSString *)method,... {