怎么通过button 或者bindtap 连接到其他网页

,比如点击按钮,直接连接到百度,公众号 或者其他想要连接的网址

单击按钮,然后通过单击事件跳转
<button @click = "tz">点击跳转
function tz() {
window.location.href='https://www.baidu.com/';
}

web-view
https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html

用href