微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

javascript – linkedin按钮动态渲染

如何以动态方式呈现linkedin按钮?例如在/ share’>< / script>中写入“< script type ='在运行时或页面加载完成后.我已经测试了写入它,或者使用 jquery将其附加在body标签中,但是它不起作用.
我会感谢任何帮助.谢谢.

解决方法

任何人仍然想知道如何做到这一点,你加载你的
<script type="IN/Share"></script> //Don't forget other attributes

只需在你的javascript中调用IN.init(),它将渲染按钮.

开发人员指南会说明使用未记录的功能,但这个论坛在开发者网站上发布:

https://developer.linkedin.com/forum/3-problems-share-button

如Eugene O’Neill(网站开发者LinkedIn)所述,

1) IN.Parse() and IN.Init() are here to stay. While we do employ the policy that any undocumented methods may or may not be supported indefinitely,these two are uniquely crucial to the functionality of the framework. The amount of work it would require to remove IN.Parse()… I don’t even want to think about it ;). IN.Init() is our preferred method for loading the framework asynchronously and won’t be going anywhere. Feel free to use either method.

原文地址:https://www.jb51.cc/js/152605.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐