小程序分享title字段带回车键分享标题显示错误(小米Max2)
发布于 6 年前 作者 gongchao 14512 次浏览 来自 官方Issues
  1. 设置分享:

  2. onShareAppMessage() {
            return {
                title: '你有1个快递信息\n换行了',
                path: 'pages/test/index,
                success: function (res) {
                    // 转发成功
                },
                fail: function (res) {
                    // 转发失败
                }
            };
        },
  3. 一个手机分享,小米Max2接受分享卡片

  4. 期望小米Max2接收到卡片效果:

  5. 实际结果不换行了



3 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及这种格式的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

title建议简洁一些,换行的话我们后续考虑一下

可能不支持

回到顶部