小程序内嵌页面,进行分享如何动态设置标题?
发布于 5 年前 作者 yancai 11435 次浏览 来自 问答

onShareAppMessage(options) {

    //console.log(options)

    var that = this

    var return_url = options.webViewUrl

    var path = ‘/pages/index/index?return_url=’ + encodeURIComponent(return_url)

    return {

      title: ‘’,

      path: path,

      success: function (res) {

        that.web_url = return_url

        // 转发成功

        wx.showToast({

          title: “转发成功”,

          icon: ‘success’,

          duration: 2000

        })

      },

      fail: function (res) {

        // 转发失败

      }

    }

  }

,web-view分享标题如何动态设置???

5 回复

h5页面的标题就是小程序上显示的标题

修改h5标题有啥用?

但是我想在分享中用这个标题,不知道怎么得到

解决了吗

修改h5的标题

回到顶部