search

Home  >  Q&A  >  body text

How to edit the jump applet in the HTML of the web page to jump to the WeChat applet after clicking the button on the web page?

Dear teachers, I know how to jump from the mini program to the web page. Just use the direct URL. But how to jump to the mini program homepage on the web page?

For example:

<td id="fix_footer_menu" onClick="window.location=XXXXXXX

align=center><img src ="index5/icon64_wx_logo.png" width="20" height="20" align="absmiddle">Follow us</td>

Click on the picture to jump to the link, but the jump size is How to write the program?

I really don’t know this, please enlighten me.

生活小助手生活小助手2057 days ago1480

reply all(1)I'll reply

  • 一只小码媛

    一只小码媛2019-06-03 18:44:52

    echo "<script src='Referenced WeChat js version'></script>";

    echo "<script type='text/javascript'>";

    echo "wx.miniProgram.switchTab({url:'XXXX'})";

    echo "</script>";


    reply
    1
  • Cancelreply