0.5 cn
Use web component to display any web content in the weex page. The src attribute is used to specify a special source. You also can use webview module to control some web operation such as goBack、goForward and reload, see webview module.
This component supports no child components.
src: <string> this attribute specifies the page source to load.
Other attributes please check out the common attributes.
width: <length> the width of the component. This style should be specified.height: <length> the height of the component. This style should be specifed.
common styles: check out the common styles
- support flexbox related styles
- support box model related styles
- support
positionrelated styles
pagestart: sent after the web component starts loading a page.pagefinish: sent after the web component finishes loading a page.error: sent if the web component failed to load a page.
common events*: check out the common events
- support
clickevent. Check out common events - support
appear/disappearevent. Check out common events
<div>
<web style="width=...; height=...;" src="..." onpagestart="pagestart" onpagefinish="pagefinish" onerror="error">
</web>
</div>