H5WEWebEngine Class Reference

Inherits from NSObject
Declared in H5WEEngineExport.h

– loadRequest:

当前页面加载新的Request

- (id)loadRequest:(NSURLRequest *)request

Parameters

args

页面要加载的Request对象

Return Value

int

Declared In

H5WEEngineExport.h

– stopLoading

停止加载当前页面

- (void)stopLoading

Declared In

H5WEEngineExport.h

– reload

重载当前页面的html

- (void)reload

Declared In

H5WEEngineExport.h

– close

关闭当前页面

- (void)close

Declared In

H5WEEngineExport.h

– goBack

当前页面返回到上一个html

- (void)goBack

Declared In

H5WEEngineExport.h

– goForward

当前页面前进到下一个html

- (void)goForward

Declared In

H5WEEngineExport.h

– evaluateJavaScript:completionHandler:

在当前页面同步执行Javascript

- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(nullable void ( ^ ) ( id , NSError *))completionHandler

Parameters

js

javasrcipt 脚本

Return Value

NSString* 执行结果

Declared In

H5WEEngineExport.h