Mini program click to jump to external link

First give a button a click event

  <view style="width:30%;text-align:center" bindtap="click_jd"></view>

Then configure routing in app.json

“pages/jd/jd”

Then give the click event

click_jd(){
wx.navigateTo({
url:'/pages/jd/jd'
})
}

Then configure in jd.wxml

<web-view src="https://www.baidu.com"></web-view>

Here is a business domain name issue, and then I will share the article!

Guess you like

Origin blog.csdn.net/wsxDream/article/details/113388989