a
defines a hyperlink to a page in the web. Its purpose and syntax is very similar to in HTML5.
This type of component supports all kinds of weex component as it's child components except for its own kind.
Check out the common styles
Check out the common events
We can't guarantee the order of execution between onclick function and href. we recommend that do not use the click event in a
.
<template> <div> <a href="http://h5.m.taobao.com"> <text>Click me to see how 'A' element opens a new world.</text> </a> </div> </template>
Use Weex Playground App to Scan the QR image and view the example for ‘a’.