Google Plus One Button - How to add a callback?

后端 未结 2 1833
广开言路
广开言路 2021-01-04 22:50

I have the google+ button being rendered on my site as follows:

In the JS:

    var po = document.createElement(\'script\'); po.type = \'text/javascr         


        
2条回答
  •  没有蜡笔的小新
    2021-01-04 23:27

    In addition to Jenny's answer you can also use a HTML5-valid +1 tag by setting the class attribute to g-plusone, and prefixing any button attributes with data- such as callback

    From https://developers.google.com/+/web/+1button/

提交回复
热议问题