wendux / DSBridge-IOS

:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.
1.96k stars 305 forks source link

在DWKWebView里面,怎么处理goback #71

Closed ulongx closed 5 years ago

ulongx commented 5 years ago

请问下,在DWKWebView里面,怎么处理goback? 我现在是写了一回调函数,有没有支持js的windows.goBack的?

[jsApis webGobackBlock:^(NSString *result) {
        strongify(self)
        if([self.dwebview canGoBack]){
            [self.dwebview goBack];
        }
    }];
wendux commented 5 years ago

不行,WKWebview没有提供相应的API

ulongx commented 5 years ago

@wendux 好的,谢谢