我尝试通过我的网站在G+上模拟点击分享:
<!doctype html>
<html>
<head>
<title>Teste share G+</title>
</head>
<body onload="alert('hiii');document.getElementById('share_g').click();">
<a href="https://plus.google.com/share?url=http://www.example.com" id="share_g" onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');document.querySelector('span.RveJvd snByac').click(); return false;"><img
src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>
</body>
</html>在这一点上工作很好,但我需要点击POST,有可能用javascript or pahntomjs模拟这个点击吗?
发布于 2017-11-16 18:19:56
看看正确的文档Here,不需要从javascript发布
https://stackoverflow.com/questions/47326943
复制相似问题