Twitter 推特推特按钮-推特事件未触发
使用以下脚本,tweet窗口将打开,但不会调用tweet事件。我怎样才能装订Twitter 推特推特按钮-推特事件未触发,twitter,tweets,Twitter,Tweets,使用以下脚本,tweet窗口将打开,但不会调用tweet事件。我怎样才能装订 window.open to tweet window: var TWTShare = function() { var title = metadata.title, url = metadata.url, text = metadata.text, href = "https://twitter.com/intent/tweet?url="+e
window.open to tweet window:
var TWTShare = function() {
var title = metadata.title,
url = metadata.url,
text = metadata.text,
href = "https://twitter.com/intent/tweet?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+"&text="+encodeURIComponent(text);
window.open(href, 'share it on twitter', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no, width='+width+', height='+height+', top='+top+', left='+left);
}
twttr.events.bind('tweet', function (event) {
console.log('tweet');
});
我也有同样的问题。。。如果你已经弄明白了,请告诉我