2014-02-28 37 views

回答

7

你在找吗?

https://plusone.google.com/_/+1/fastbutton?url=http://stackoverflow.com

如果您正在搜索的文本价值,你可以搜索以下行url中的源代码:

<div id="aggregateCount" class="Oy">{NUMBER_OF_SHARES}</div> 

下面的JavaScript将提取从股份数量网址:

parseInt(document.getElementById('aggregateCount').innerHTML.replace('.','')) 
+0

谢谢!它是否适用于其他“共享链接”格式?基本上我想知道有多少人点击此叠加层上的“共享”数量:https://plus.google.com/share?url = http://developers.google.com/%2B/此叠加层已被调用通过点击像这样的G +图标https://www.gstatic.com/images/icons/gplus-32.png – user1998974

+0

https://plusone.google.com/_/+1/fastbutton?url=http:/ /developers.google.com/%2B/ – ReeCube

+0

这告诉你有多少人+ 1'da链接。不是股份数量。 –