webview
module provides a series of web operation API like goBack
, goForward
, and reload
.
Usually used with the <web>
component.
var webElement = this.$el('webview'); var webview = weex.requireModule('webview'); webview.goBack(webElement.ref); webview.goForward(webElement.ref); webview.reload(webElement.ref);
Goes to the previous page in WebView's session history.
<web>
component.Goes to the next page in WebView's session history.
<web>
component.Reloads the current web page.
<web>
component.