Link 链接
何时使用#
用于页面互跳
API#
Link#
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
href | 链接 | string | 无 |
用于页面互跳
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
href | 链接 | string | 无 |
/** @jsx createElement */
import {createElement, Component} from 'weex-rx';
import { View, Text} from 'nuke-components';
import { Link } from 'nuke';
import {mount} from 'nuke-mounter';
let App = class NukeDemoIndex extends Component {
constructor() {
super();
// this.state = {input:''}
}
press() {
console.log(11111111)
}
render() {
return (
<View style={{display:'flex'}} >
<Link href="http://www.baidu.com">跳到百度</Link>
<Link href="list.html">跳到list.html</Link>
<Link href="tpl.html?we=list.js">跳到tpl.html?we=list.js</Link>
<Link href="mailto:yichen.hww@alibaba-inc.com">link标签发邮件</Link>
<Link href="sms:10086">link标签发短信</Link>
<Link href="tel:10086">link标签打电话</Link>
</View>
);
}
}
mount(<App/>, mountNode);