【发布时间】:2016-03-08 07:46:00
【问题描述】:
Here 是一个随机报价生成器应用程序,我需要修复 twitter 按钮。我需要这样做,以便当我单击“推文”时,它会在推文中包含引用和作者。到目前为止,它只包含一个链接。我该怎么做?
$('#tweetQuote').attr('href', 'https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=' + encodeURIComponent('"' + randomQuote + '" ' + randomAuthor));
【问题讨论】:
标签: javascript arrays twitter