admin 发表于 2023-2-16 18:54:56

wx中使用api跳转的方式

<div id="article_content" class="article_content clearfix">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
                <div id="content_views" class="htmledit_views">
                  <p>方式一&#xff1a;使用wx.navigateTo({</p>
<p>        url:'填写地址'&#xff0c;</p>
<p>})</p>
<p>会产生相关的返回连接</p>
<p></p>
<p>方式二&#xff1a;使用wx.redirectTo({</p>
<p>        url:'填写地址'&#xff0c;</p>
<p>})</p>
<p>会关闭上一个页面进行跳转</p>
<p></p>
<p>方式三&#xff1a;使用wx.reLaunch({</p>
<p>        url:'填写地址'&#xff0c;</p>
<p>})</p>
<p>关闭所有连接进行跳转</p>
<p>方式三&#xff1a;wx.switchTab({</p>
<p>        url:'填写地址'&#xff0c;</p>
<p>})</p>
<p>关闭tabbar&#xff0c;页面进行跳转</p>
<p></p>
<p> </p>
                </div>
      </div>
      <div id="treeSkill"></div>
页: [1]
查看完整版本: wx中使用api跳转的方式