收藏
回答

onShareAppMessage中path属性最大长度是多少

onShareAppMessage: function () {
        let title = this.data.textareaValue === '' ? '' : this.data.textareaValue.substring(0, 50),
            that = this;
 
        return {
            title: title,
            path: '/pages/page1/page1?srcTxt=' + encodeURIComponent(that.data.textareaValue) + '&result=' + encodeURIComponent(that.data.translationResult) + '&to=' + this.data.resLang + '&from=' + this.data.fromLang,
            success: function (res) {
                // 转发成功
            },
            fail: function (res) {
                // 转发失败
            }
        }
    }

目前我path中字符数超过4000多转发的时候就会失败,请问转发时这个字符长度最大是多少?

回答关注问题邀请回答
收藏

1 个回答

  • 花开富贵🧬
    花开富贵🧬
    2018-11-08

    4000多还不够么?

    2018-11-08
    有用
    回复
登录 后发表内容