Home>Article>WeChat Applet> What should I do if the mini program cannot jump to a link?

What should I do if the mini program cannot jump to a link?

coldplay.xixi
coldplay.xixi Original
2020-06-11 13:40:29 6954browse

What should I do if the mini program cannot jump to a link?

What should I do if the mini program cannot jump to the link?

Methods to solve the problem that mini programs cannot jump to links:

1. Take Baidu as an example

index.wxml (按钮页面)   

What should I do if the mini program cannot jump to a link?

2.out.wxml (Baidu page), just use src for the interface you want to jump to. Wherever you want to jump to in the future, write the address in src!

You can jump on the computer. The trial version will not work on the mobile phone unless you have completed the configuration of the domain name in the background of the mini program

//Don't worry, you read it correctly, just this one line will do

What should I do if the mini program cannot jump to a link?

3 .If you want to create a new project, you need to configure routing in app.json,

"pages":[ "pages/index/index", "pages/logs/logs", "pages/out/out" ],

4. You need to configure the business domain name and upload the verification file.

5.

index.js goBaidu:function(){ wx.navigateTo({ url:'../out/out', // success:function() { }, //成功后的回调; fail:function() { }, //失败后的回调; complete:function() { } //结束后的回调(成功,失败都会执行) })

What should I do if the mini program cannot jump to a link?

6. Complete renderings

What should I do if the mini program cannot jump to a link?

The above is the detailed content of What should I do if the mini program cannot jump to a link?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn