小程序之跳转网页链接

169 阅读1分钟

1 、设置点击事件 并且把要去的链接传过去 (也可以写死链接)

image.png

2、 拿到要去的链接 并跳转到一个单独的页面

image.png

3、 把拿到的网页链接存到变量里面

image.png

4、拿到数据 进行网页跳转 src指向就是网页跳转得链接 (也可以写成死链接) image.png