onShareAppMessage中path属性最大长度是多少
发布于 6 年前 作者 gang59 6069 次浏览 来自 问答
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 回复

4000多还不够么?

回到顶部