developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * WVJavaScriptExecutor.h
 * 
 * Created by WindVane.
 * Copyright (c) 2017年 阿里巴巴-淘宝技术部. All rights reserved.
 */
 
#import <Foundation/Foundation.h>
 
/**
 * 允许执行 JavaScript 字符串的协议。
 */
@protocol WVJavaScriptExecutor <NSObject>
 
/**
 * 执行 JavaScript 字符串,并在执行完毕后调用指定的回调。
 * 允许在任意线程调用,并总是在主线程回调。
 */
- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^)(id, NSError *))completionHandler;
 
@end