Uro*_*s K 6 javascript share google-plus
当用户与自定义共享按钮共享内容时,有没有办法添加回调?
目前我在弹出窗口中打开一个共享对话框:
<a data-height="600" data-title="Google+" class="popup" href="https://plus.google.com/share?url=MY_URL">Share</a>
$('.popup').click(function(event) {
var width = 575,
height = $(this).data('height'),
left = ($(window).width() - width) / 2,
top = ($(window).height() - height) / 2,
url = this.href,
opts = 'status=1' +
',width=' + width +
',height=' + height +
',top=' + top +
',left=' + left;
window.open(url, $(this).data('title'), opts);
event.preventDefault();
});
Run Code Online (Sandbox Code Playgroud)
在文档中:https://developers.google.com/+/web/share/他们说,我们可以在使用js api时使用data-onendinteraction指定回调.找不到使用自定义共享链接的方法.
bor*_*ano -1
看来是没有办法了。这个确切的功能请求存在一个悬而未决的问题。
https://code.google.com/p/google-plus-platform/issues/detail?id=232
考虑主演和支持它,但它已经开业三年了。谷歌似乎并没有努力去实现它。
| 归档时间: |
|
| 查看次数: |
1711 次 |
| 最近记录: |