webView
NSInteger step; //返回的页面 0是首页
[webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"window.history.go(-%ld)", (long) step]];
WKWebView
NSInteger step;//返回的页码,0是首页
WKBackForwardListItem* backItem = webView.backForwardList.backList[step];
[webView goToBackForwardListItem:backItem];