a defines a hyperlink to a page in the web. Its purpose and syntax is very similar to in HTML5.

Child Components

This type of component supports all kinds of weex component as it’s child components except for its own kind.


  • href: href attributes defines the URL of the hyperlink.


common styles

Check out the common styles


common events

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.


<div class="wrapper">
<a class="button" href="http://dotwe.org/raw/dist/3e0e40f9ddad79f98cd236753965ffd8.js">
<text class="text">Jump</text>
<style scoped>
.wrapper {
flex-direction: column;
justify-content: center;
.button {
width: 450px;
margin-top: 30px;
margin-left: 150px;
padding-top: 20px;
padding-bottom: 20px;
border-width: 2px;
border-style: solid;
border-color: #DDDDDD;
background-color: #F5F5F5
.text {
font-size: 60px;
color: #666666;
text-align: center;

try it