【发布时间】:2018-06-14 13:42:31
【问题描述】:
我正在为 Facebook Messenger 创建评分聊天机器人。
不幸的是,我在 android 和 iOS 上得到了不同的结果。
我可以去掉android上数字后的前导空格或者设置最小宽度吗??
我使用的代码是:
quick_replies: [
{ content_type: 'text', title: '0', payload: `0-${key}` },
{ content_type: 'text', title: '1', payload: `1-${key}` },
{ content_type: 'text', title: '2', payload: `2-${key}` },
{ content_type: 'text', title: '3', payload: `3-${key}` },
{ content_type: 'text', title: '4', payload: `4-${key}` },
{ content_type: 'text', title: '5', payload: `5-${key}` },
{ content_type: 'text', title: '6', payload: `6-${key}` },
{ content_type: 'text', title: '7', payload: `7-${key}` },
{ content_type: 'text', title: '8', payload: `8-${key}` },
{ content_type: 'text', title: '9', payload: `9-${key}` },
{ content_type: 'text', title: '10', payload: `1-|${key}` }
]
【问题讨论】:
标签: javascript facebook facebook-chatbot