1

with var url = window.location.href; get i my url and now i will the url variable put in the facebook share link.

<fb:share-button href="url variable here" type="button"></fb:share-button>

how can I implement that?

Hope someone can help me.

4

1 回答 1

0

干得好!

var url = window.location.href;
$('fb\\:share-button').attr('href', url)

希望这可以帮助

于 2014-02-26T12:36:09.130 回答