### [小程序不能跳转链接怎么办?](https://www.prosaas.cn/article/16651) **Published:** 2020-06-11T05:40:29 **Author:** 5201314 **Excerpt:** 小程序不能跳转链接怎么办?解决小程序不能跳转链接的方法:1.以百度为例 2.out.wxml(百度页面),把你… **![](https://img.php.cn/upload/article/000/000/052/5ee1c34c51da1873.jpg)** **小程序不能跳转链接怎么办?** **解决小程序不能跳转链接的方法:** 1.以百度为例 index.wxml (按钮页面) ![](https://img.php.cn/upload/image/727/905/189/1591853208859744.png) 2.out.wxml(百度页面),把你要跳转的界面用src就可以了,以后要跳转到哪,src里面地址就写哪! 电脑上是可以跳转的,体验版的话,在手机上是不好使的,除非你已经在小程序后台完成了配置域名 //放心你没有看错就这么一行就行了 ![](https://img.php.cn/upload/image/422/537/650/1591853219167689.png) 3.你要新建项目,要在app.json中配置一下路由, "pages":\[ "pages/index/index", "pages/logs/logs", "pages/out/out" \], 4.需要配置业务域名并上传验证文件。 5. index.js goBaidu:function(){ wx.navigateTo({ url:'../out/out', // success:function() { }, //成功后的回调; fail:function() { }, //失败后的回调; complete:function() { } //结束后的回调(成功,失败都会执行) }) ![](https://img.php.cn/upload/image/274/777/614/1591853291508873.png) 6.完成效果图 ![](https://img.php.cn/upload/image/900/455/765/1591853312574091.png) 以上就是小程序不能跳转链接怎么办?的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** https, json **Categories:** 后端开发 ---