javascript – linkedin按钮动态渲染

前端之家收集整理的这篇文章主要介绍了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.f2er.com/js/152605.html

猜你在找的JavaScript相关文章