Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.2 KB

File metadata and controls

63 lines (39 loc) · 1.2 KB

webview

0.5 cn

Summary

A series of web operation api like goBack, goForward, and reload.

API

goBack(ref)

Description

Loads the previous location in the history stack.

Arguments

  • ref(string): the reference of the web component.
Example
var webview = require('@weex-module/webview');
var webElement = this.$el('webview');
webview.goBack(webElement.ref);

goForward(ref)

Description

Loads the next location in the history stack.

Arguments

  • ref(string): the reference of the web component.
Example
var webview = require('@weex-module/webview');
var webElement = this.$el('webview');
webview.goForward(webElement.ref);

reload(ref)

Description

Reloads the current web page.

Arguments

  • ref(string): the reference of the web component.
Example
var webview = require('@weex-module/webview');
var webElement = this.$el('webview');
webview.reload(webElement.ref);