2

Try this recipeこのツイッター共有機能の冒頭で、テキストの文字列を出力する方法を見つけようとしています。したがって、ボタンをクリックして共有すると、「このレシピを試してください」と表示され、URLなどが表示されます。ありがとうございます。

function load_twitter() {
    var load = window.open('http://twitter.com/share?url='+ window.location.href +'&via=atsbyvermouth','','scrollbars=no,menubar=no,height=450,width=650,resizable=yes,toolbar=no,location=no,status=no');
}
4

1 に答える 1

2

非常に簡単です。text=Try this recipe&最初にこれを追加するだけです。

function load_twitter() { 
    window.open('http://twitter.com/share?text=Try this recipe&url='+ window.location.href +'&via=atsbyvermouth','','scrollbars=no,menubar=no,height=450,width=650,resizable=yes,toolbar=no,location=no,status=no'); 
}

デモ

于 2012-09-06T02:43:58.893 に答える